Skip to content

Instantly share code, notes, and snippets.

@olopsman
Created July 27, 2020 09:17
Show Gist options
  • Save olopsman/ede16a3be8a3c41b285ca7ec6ec8b468 to your computer and use it in GitHub Desktop.
Save olopsman/ede16a3be8a3c41b285ca7ec6ec8b468 to your computer and use it in GitHub Desktop.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
let storyboard = UIStoryboard(name: "Main", bundle: nil)
var vc : UIViewController = storyboard.instantiateViewController(withIdentifier: "mainScreen") as UIViewController
window = UIWindow(frame: UIScreen.main.bounds)
self.window?.rootViewController = vc
self.window?.makeKeyAndVisible()
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment