Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Multiple inheritance demand #58

Open
JqyModi opened this issue Aug 21, 2017 · 2 comments
Open

Multiple inheritance demand #58

JqyModi opened this issue Aug 21, 2017 · 2 comments

Comments

@JqyModi
Copy link

JqyModi commented Aug 21, 2017

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

@pedrovgs
Copy link
Contributor

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.

@JqyModi
Copy link
Author

JqyModi commented Aug 22, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants