Skip to content

Instantly share code, notes, and snippets.

@HassanElDesouky
Created December 13, 2018 14:23
Show Gist options
  • Save HassanElDesouky/ae7c07b61c251d2519cc3f9c8a9179d9 to your computer and use it in GitHub Desktop.
Save HassanElDesouky/ae7c07b61c251d2519cc3f9c8a9179d9 to your computer and use it in GitHub Desktop.
setting up the window.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
//New code starts from here
window = UIWindow(frame: UIScreen.main.bounds)
window?.makeKeyAndVisible()
let mainVC = ViewController()
window?.rootViewController = mainVC
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment