BothamUI icon indicating copy to clipboard operation
BothamUI copied to clipboard

Multiple inheritance demand

Open JqyModi opened this issue 8 years ago • 2 comments

When I need to introduce other third-party libraries need to inherit to the parent class but BothamUI requirements ExampleViewController, how should solve?

JqyModi avatar Aug 21 '17 08:08 JqyModi

Hi @JqyModi multiple inheritance is not easy to solve in Swift because it's not supported. As a workaround you can copy part of the base view controller to your view controller implementation. In the future we will provide this feature by composition instead of inheritance. Remeber you can always implement all the protocols implemented by the base class 😃 I hope this is the answer to your question.

pedrovgs avatar Aug 22 '17 06:08 pedrovgs

Ok I will continue to focus on the latest dynamic, very much looking forward to componentization MVP instead of inheritance

JqyModi avatar Aug 22 '17 08:08 JqyModi