How to handle different states in a screen in iOS
Issue #469
If there are lots of logics and states inside a screen, it is best to introduce parent and child container, and switch child depends on state. Each child acts as a State handler.
In less logic case, we can introduce a Scenario class that holds the state. So the ViewController
can be very slim. The thing with State is that all possible scenarios are clear and required to be handled
1 | final class UserDetailScenario { |