Skip to content

Instantly share code, notes, and snippets.

@anupamchugh
Created June 26, 2020 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anupamchugh/3b5e57111d19da763bfe256bb74f53ae to your computer and use it in GitHub Desktop.
Save anupamchugh/3b5e57111d19da763bfe256bb74f53ae to your computer and use it in GitHub Desktop.
class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
return true
}
}
@main
struct MyApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment