Last active
March 15, 2020 14:26
-
-
Save cipolleschi/71fd10200371788f03d667d4ccf1509b to your computer and use it in GitHub Desktop.
setup the ifrst VC in applicationDidFinishLaunching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func application( | |
_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | |
) -> Bool { | |
let window = UIWindow() | |
let vc = ViewController() | |
vc.view.backgroundColor = .red | |
window.rootViewController = vc | |
self.window = window | |
window.makeKeyAndVisible() | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment