Last active
April 1, 2017 17:51
-
-
Save AndreyPanov/2dc2e29aea166740fb69c371f2511b28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
var rootController: UINavigationController { | |
return self.window!.rootViewController as! UINavigationController | |
} | |
private lazy var applicationCoordinator: Coordinator = self.makeCoordinator() | |
func application(_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
applicationCoordinator.start() | |
return true | |
} | |
private func makeCoordinator() -> Coordinator { | |
return ApplicationCoordinator( | |
router: RouterImp(rootController: rootController), | |
coordinatorFactory: CoordinatorFactoryImp() | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment