Classes
The following classes are available globally.
-
The simplest Coordinator that can have other children Coordinators.
This does everything that Coordinator does plus managing the hierarchy and navigation flow, i.e. how the children are presented and where in the navigation flow. The idea is that you can use it as a
See moreswitch
between any kind of Coordinator.Declaration
Swift
open class ContainerCoordinator<T> : Coordinator<T>, HasChildren where T : UIViewController, T : Coordinated
-
This is the base Coordinator class, for cases that you do not need manage any child Coordinator. Intended to be used as a wrapper to your UIViewController and manage its data fetching and other concerns, keeping your UIViewController as simple as possible.
T must be a UIViewController and at the same time conform to
See moreCoordinatedDeclaration
Swift
open class Coordinator<T> : NSObject, Coordinating where T : UIViewController, T : Coordinated
-
The NavigationCoordinator is a specialized
ContainerCoordinatorfor UINavigationControlelrsIt is to be used with a UINavigationController as rootViewController and it has specific logic to cope with the intricacies of said UINavigationController. It has specialized presentation methods that mirror the ones from UINavigationController.
See moreDeclaration
Swift
open class NavigationCoordinator<T> : ContainerCoordinator<T>, UINavigationControllerDelegate where T : UINavigationController, T : Coordinated
-
The TabBarCoordinator is a specialized ContainerCoordinator for UITabBarController
It is to be used with a UITabBarCoordinator as rootViewController and has specific logic to cope with the intricacies of said UITabBarController. It has specialized presentation methods that mirror the ones from UITabBarController.
See moreDeclaration
Swift
open class TabBarCoordinator<T> : ContainerCoordinator<T>, UITabBarControllerDelegate where T : UITabBarController, T : Coordinated
View on GitHub
Install in Dash
Classes Reference