Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
  2. // initialize a new window which will cover the whole screen.
  3. window = UIWindow(frame: UIScreen.main.bounds)
  4. // create a variable which holds your view controller.
  5. let homeViewController = UIViewController()
  6. // set the background color of your viewController.
  7. homeViewController.view.backgroundColor = UIColor.purple
  8. // set the rootViewController of your window. This is the ViewController that will first show up when the app launches.
  9. window!.rootViewController = homeViewController
  10. // make the window visible.
  11. window!.makeKeyAndVisible()
  12. return true
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement