Introduction to Coordinator pattern in Swift
['Benoit Pasquier']
Benoit Pasquier - Swift, Data and more
init () } override func start () { // preparing root view let navigationController = UINavigationController () let myCoordinator = MyCoordinator ( navigationController : navigationController ) // store child coordinator self . navigationController = navigationController } override func start () { // prepare the associated view and injecting its viewModel let viewModel = MyViewModel () let viewController = MyViewController ( viewModel : viewModel ) // for specific events from viewModel, define next navigation viewModel .