Created
January 14, 2020 14:56
-
-
Save zafarivaev/6d5b886e9d5bedd1c34110cd8526b858 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 RxSwift | |
import ReactiveCoordinator | |
class AppCoordinator: ReactiveCoordinator<Void> { | |
var window: UIWindow | |
init(window: UIWindow) { | |
self.window = window | |
} | |
override func start() -> Observable<Void> { | |
let navigationController = UINavigationController(rootViewController: HolidaysViewController()) | |
let holidaysCoordinator = HolidaysCoordinator(rootViewController: navigationController.viewControllers[0]) | |
window.rootViewController = navigationController | |
window.makeKeyAndVisible() | |
return coordinate(to: holidaysCoordinator) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment