The Wayback Machine - https://web.archive.org/web/20201007221326/https://github.com/uber/RIBs/issues/339
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

SceneDelegate and AppDelegate split #339

Open
alexvbush opened this issue Jul 8, 2019 · 0 comments
Open

SceneDelegate and AppDelegate split #339

alexvbush opened this issue Jul 8, 2019 · 0 comments

Comments

@alexvbush
Copy link

@alexvbush alexvbush commented Jul 8, 2019

iOS 13 introduces new SceneDelegate that suppose to take care of all UI related instantiations and takes that responsibility away from AppDelegate. Now app delegate suppose to setup dependencies and data for the app. Are there any plans to split things up the same way in RIBs architecture?

As it currently stands RootBuilder.build() creates an instance of LaunchRouting and then we give that instance a window to work with and draw content/VCs on. It seems like if this setup is preserved that means RootBuilder.build() should be called and LaunchRouting should be created for each scene instance. That makes sense because we would want to have a brand new RIBs tree for each window. But would it make sense to move shared dependency between those trees to AppDelegate? AppComponent that implements Component<EmptyDependency>, RootDependency could potentially be created in AppDelegate and passed to ever new root for every new scene/window created.
Although I'm not sure how actual mechanics of this are going to work because as far as I can tell there is no way to pass things cleanly from app delegate instance to scene delegate instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.