Last active
June 9, 2017 05:03
-
-
Save chriswebb09/2725c41afbf8118647e5ea6c2b295474 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import UIKit | |
class MainCoordinator: ApplicationCoordinator { | |
var window: UIWindow | |
var appCoordinator: Coordinator! | |
init(window: UIWindow?) { | |
guard let window = window else { fatalError("Invalid, no window") } | |
self.window = window | |
} | |
func setup(coordinator: Coordinator) { | |
appCoordinator = coordinator | |
appCoordinator.delegate = self | |
} | |
func start() { | |
guard let coordinator = appCoordinator else { return } | |
coordinator.start() | |
window.makeKeyAndVisible() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment