Guest User

Untitled

a guest
Nov 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. final class AppDelegate: UIResponder, UIApplicationDelegate {
  2. var window: UIWindow?
  3. private var appFlowController: AppFlowController?
  4. private let dependencyManager = DependencyManager()
  5.  
  6. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  7. let window = UIWindow(frame: UIScreen.main.bounds)
  8. window.rootViewController = UINavigationController()
  9. self.window = window
  10. appFlowController = AppFlowController(window: window, dependencyManager: dependencyManager)
  11. appFlowController?.showInitialView()
  12. window.makeKeyAndVisible()
  13. return true
  14. }
  15.  
  16. override var next: UIResponder? {
  17. return appFlowController
  18. }
  19. }
Add Comment
Please, Sign In to add comment