Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Flow Controller - Revisited

Flow Controller - Revisited

Presented at CocoaHeads Montreal on February 9th, 2016.

Based on an old blog post:

Sample code:

Olivier Collet

February 09, 2016

More Decks by Olivier Collet

Other Decks in Programming


  1. protocol FlowControllerDelegate { func flowControllerDidFinish(flowController: FlowController) } class FlowController: UIResponder,

    UIApplicationDelegate { var childFlowController: FlowController? var delegate: FlowControllerDelegate? var parentViewController: UIViewController? var currentViewController: UIViewController? } class NavigationFlowController: FlowController, UINavigationControllerDelegate { var navigationController: UINavigationController! } FlowController NavigationFlowController class TabBarFlowController: FlowController, UITabBarControllerDelegate { var tabBarController: UITabBarController! } TabBarFlowController