You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two main approaches for navigating between controllers. Coordinator and flow coordinators. Both of them have very abstract definitions therefore have very different implementations. Rather than explaining the abstract definitions of these patterns, I will share some basic implementations of these patterns just to give an idea of what they look like.
FlowCoordinator is basically the same pattern with the Coordinator expect for the one fact that the Coordinator itself is basically a UIViewController rather than some abstract Protocol.
There are few differences between these patterns but the one I found most important is syncing sub-coordinators with UINavigationController. Users can tap on the back button in UINavigationViewController and this would pop the current view controller out of the navigation stack but then we would need to tell our Parent-Coordinator somehow to remove child-coordinator from stack too. (see here)
There is a more detailed comparison of these two here.
Navigation approaches and patterns in MVVM should be analyzed.
The text was updated successfully, but these errors were encountered: