cleaning up and breaking down the app delegate conversion with swiftui to understand what's happening form firebase

This commit is contained in:
talksik
2021-12-13 14:54:08 -08:00
parent ec66e0c725
commit 4fd12c4d91
+4 -5
View File
@@ -11,7 +11,7 @@ import GoogleSignIn
@main @main
struct nirvana_iosApp: App { struct nirvana_iosApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var delegate @UIApplicationDelegateAdaptor private var appDelegate: AppDelegate
var body: some Scene { var body: some Scene {
WindowGroup { WindowGroup {
ContentView() ContentView()
@@ -19,11 +19,10 @@ struct nirvana_iosApp: App {
} }
} }
class AppDelegate: NSObject, UIApplicationDelegate{
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()
class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()
return true return true
} }