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:
http://ocollet.com/2014/02/06/flow-controller/

Sample code:
https://github.com/ocollet/Flow-Controller

Olivier Collet

February 09, 2016
Tweet

More Decks by Olivier Collet

Other Decks in Programming

Transcript

  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