Skip to content

Instantly share code, notes, and snippets.

@hlung
Last active May 8, 2019 08:34
Show Gist options
  • Save hlung/3ca442775bb3b1aeeb8783755137f8bd to your computer and use it in GitHub Desktop.
Save hlung/3ca442775bb3b1aeeb8783755137f8bd to your computer and use it in GitHub Desktop.
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow? // UIApplicationDelegate expects an optional UIWindow
private var appCoordinator: AppCoordinator!
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
appCoordinator = AppCoordinator(window: window!)
appCoordinator.start()
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment