Skip to content

Instantly share code, notes, and snippets.

@spnkr
Created February 13, 2019 06:45
Show Gist options
  • Save spnkr/efda07cf539007205c82e8176702e4ac to your computer and use it in GitHub Desktop.
Save spnkr/efda07cf539007205c82e8176702e4ac to your computer and use it in GitHub Desktop.
#blog #AppDelegate
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
_ = coreDataStack.mainContext
self.window = UIWindow(frame: UIScreen.main.bounds)
let loadingViewController = LoadingViewController()
loadingViewController.coreDataStack = coreDataStack
self.window?.rootViewController = loadingViewController
self.window?.makeKeyAndVisible()
app.window = self.window
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment