Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save boudhayan/84d12550290918ff7e59653bcc3d559f to your computer and use it in GitHub Desktop.
import UIKit
@objc(TesingAppDelegate)
class TestingAppDelegate: 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