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

732de78cba7ebf62ccb9cf3ea08d618b?s=128

Olivier Collet

February 09, 2016
Tweet

Transcript

  1. FLOW CONTROLLER REVISITED OLIVIER COLLET. COCOAHEADS MONTREAL. 09.02.2016

  2. FIRST & LAST NAME EMAIL & PASSWORD PHOTO

  3. GIVE YOUR APP A BRAIN

  4. A FLOW CONTROLLER PREVENTS VIEW CONTROLLER DEPENDENCIES

  5. A FLOW CONTROLLER MANAGES THE LOGIC BETWEEN VIEW CONTROLLERS

  6. A FLOW CONTROLLER ORCHESTRATES THE VIEW CONTROLLERS

  7. A FLOW CONTROLLER CAN HANDLE A PORTION OF THE APPLICATION

  8. A FLOW CONTROLLER KEEPS A PORTION OF THE APPLICATION’S STATE

  9. APP DELEGATE LAUNCH FC MAIN FC SUBSCRIPTION FC ON-BOARDING FC

    AUTHENTICATION FC
  10. 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
  11. Links • Sample code:
 https://github.com/ocollet/Flow-Controller • Blog post:
 http://ocollet.com/2014/02/06/flow-controller/

  12. Olivier Collet http://ocollet.com @ocollet