Created
April 16, 2022 06:41
-
-
Save vikage/dbc05fd5e745583d35f5e6e41ce6c7d8 to your computer and use it in GitHub Desktop.
AppDelegate.swift configure firebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import FirebaseCore | |
@main | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
self.window = UIWindow(frame: UIScreen.main.bounds) | |
let storyboard = UIStoryboard(name: "Main", bundle: nil) | |
let rootVC = storyboard.instantiateInitialViewController() | |
self.window?.rootViewController = rootVC | |
self.window?.makeKeyAndVisible() | |
FirebaseApp.configure() | |
return true | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment