Skip to content

Instantly share code, notes, and snippets.

@shawnkoh
Created May 25, 2021 03:29
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 shawnkoh/7cdf837e9b2dd87fbde41494aeb61fbd to your computer and use it in GitHub Desktop.
Save shawnkoh/7cdf837e9b2dd87fbde41494aeb61fbd to your computer and use it in GitHub Desktop.
Typical Firebase setup for a SwiftUI App
import SwiftUI
@main
struct ExampleApp: App {
init() {
FirebaseApp.configure()
let settings = FirestoreSettings()
Firestore.firestore().settings = settings
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment