Skip to content

Instantly share code, notes, and snippets.

@vikage
Created April 16, 2022 06:41
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 vikage/dbc05fd5e745583d35f5e6e41ce6c7d8 to your computer and use it in GitHub Desktop.
Save vikage/dbc05fd5e745583d35f5e6e41ce6c7d8 to your computer and use it in GitHub Desktop.
AppDelegate.swift configure firebase
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