Skip to content

Instantly share code, notes, and snippets.

@Winchariot
Created December 3, 2017 21:11
Show Gist options
  • Save Winchariot/b3c41e8d29e8da1f45df1f1666eb1c55 to your computer and use it in GitHub Desktop.
Save Winchariot/b3c41e8d29e8da1f45df1f1666eb1c55 to your computer and use it in GitHub Desktop.
Set app's root VC in code
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
window?.makeKeyAndVisible()
window?.rootViewController = MyInitialViewController()
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment