Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Installation

Ben Myers edited this page Feb 5, 2022 · 3 revisions

Thanks for choosing EasyFirebase! πŸŽ‰ Follow these steps to implement EasyFirebase into your iOS or macOS project.

  1. If you haven't already, create a Firebase project and follow the steps outlined on the Firebase website.
  2. Add the EasyFirebase package to your Xcode project by navigating to File > Add Packages... and enter the following URL into the search bar:
https://github.com/Flowductive/easy-firebase
  1. Import EasyFirebase wherever necessary:
import EasyFirebase
  1. Configure EasyFirebase at app launch.
  • If using the UIKit lifecycle on iOS:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
  EasyFirebase.configure()
  return true
}
  • If using the UIKit lifecycle on macOS:
func applicationDidFinishLaunching(_ aNotification: Notification) {
  EasyFirebase.configure()
}
  • If using any SwiftUI lifecycle:
var body: some Scene {
  WindowGroup {
    ContentView()
      .onAppear {
        EasyFirebase.configure()
      }
  }
}