Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Scenes to provide their own ViewController instances. #91

Merged
merged 1 commit into from
Nov 25, 2018

Conversation

nhaarman
Copy link
Owner

@nhaarman nhaarman commented Nov 24, 2018

To get started easier, Scenes will be able to
create their own ViewController instances, much like
Fragment's onCreateView.

From a purists' point of view, this is unwanted: the Scene will have a direct dependency on the Container implementation. However, for trivial cases being able to provide a ViewController directly greatly reduces boilerplate, and keeps related code together.

Scenes providing ViewControllers can be used together with the decoupled ViewControllerFactory way of providing ViewControllers; the Scene has precedence.

@nhaarman nhaarman force-pushed the scene-as-controllerfactory branch 2 times, most recently from eb9f74b to 4ccd3fa Compare November 24, 2018 12:43
To get started easier, Scenes will be able to
create their own ViewController instances, much like
Fragment's onCreateView.
@nhaarman nhaarman merged commit 11d2f4c into master Nov 25, 2018
@nhaarman nhaarman deleted the scene-as-controllerfactory branch November 25, 2018 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant