cleaning up and breaking down the app delegate conversion with swiftui to understand what's happening form firebase
This commit is contained in:
@@ -11,21 +11,20 @@ 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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class AppDelegate: NSObject, UIApplicationDelegate{
|
|
||||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:
|
class AppDelegate: NSObject, UIApplicationDelegate {
|
||||||
[UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
|
||||||
FirebaseApp.configure()
|
FirebaseApp.configure()
|
||||||
|
return true
|
||||||
return true
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any]) -> Bool {
|
func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any]) -> Bool {
|
||||||
return GIDSignIn.sharedInstance.handle(url)
|
return GIDSignIn.sharedInstance.handle(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user