xmartlabs/XLPagerTabStrip

Compatibility with projects having both Swift and Obj C

Open

#417 aberto em 18 de jul. de 2017

Ver no GitHub
 (0 comments) (1 reaction) (0 assignees)Swift (1.319 forks)batch import
help wanted

Métricas do repositório

Stars
 (6.965 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador