xmartlabs/XLPagerTabStrip

Compatibility with projects having both Swift and Obj C

Open

#417 建立於 2017年7月18日

在 GitHub 查看
 (0 留言) (1 反應) (0 負責人)Swift (1,319 fork)batch import
help wanted

倉庫指標

Star
 (6,965 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Lets Say I have a Swift class A I want to have tab bar like the one in your Youtube Example.

So I would be declaring it like

@objc class A: BaseButtonBarPagerTabStripViewController<MyCustomTabCell>

The reason I used @objc is because I will use my class in Objective C code. This will give a compile time error because Classes with Swift generics can not be used in Objective C.

please see this thread

Can you please tell me a workaround

貢獻者指南