swift3.1 window = UIWindow(frame: UIScreen.main.bounds) window?.backgroundColor = UIColor.white window?.rootViewController = UIViewController() window?.makeKeyAndVisible()
swift3.1