uias / Pageboy

📖 A simple, highly informative page view controller
MIT License
1.99k stars 154 forks source link

Multiple Inheritance of UIViewController Subclasses #248

Closed bovillaios closed 2 years ago

bovillaios commented 4 years ago

Hi Team,

Thanks for the framework.

We are creating a subclass named AppBaseVC from UIViewController, where it has App Theme etc.

We had integrated Pageboy which works fine but we are unable to Inherit AppBaseVC & PageboyViewController, as swift doesn't support multiple inheritances.

Is there any possibility to achieve this? Will this Pageboy works if we drag and drop the file into Project and change the superclass of PageboyViewController to AppBaseVC?

Thanks in advance, Ram

msaps commented 4 years ago

@bovillaios as you said Swift doesn't support multiple inheritance - could you achieve your desired structure by embedding a PageboyViewController as a child view controller of an AppBaseVC view controller?