Skip to content

Instantly share code, notes, and snippets.

@boudhayan
Created August 13, 2022 09:50
Show Gist options
  • Select an option

  • Save boudhayan/a68fbcd1acece1cdfd11fae2567cd6ba to your computer and use it in GitHub Desktop.

Select an option

Save boudhayan/a68fbcd1acece1cdfd11fae2567cd6ba to your computer and use it in GitHub Desktop.
import UIKit
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
print("--> Launching from \(type(of: self))")
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = UINavigationController(rootViewController: UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "rootVC"))
window?.backgroundColor = .white
window?.makeKeyAndVisible()
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment