xmartlabs/XLPagerTabStrip

Compatibility with projects having both Swift and Obj C

Open

#417 geöffnet am 18. Juli 2017

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Swift (1.319 Forks)batch import
help wanted

Repository-Metriken

Stars
 (6.965 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide