Coordinator
public protocol Coordinator : AnyObject
Using this protocol can provide de-coupling of navigation
-
List all the sub-coordinators
Declaration
Swift
var children: [Coordinator] { get set }
-
Provide a root to perform navigations
Declaration
Swift
var root: UIViewController! { get set }
-
Boot up the current coordinator
Declaration
Swift
func start()
-
childDidFinish(_:)
Default implementationClean up the child
Default Implementation
Declaration
Swift
func childDidFinish(_ child: Coordinator)