firebase / quickstart-ios

Firebase Quickstart Samples for iOS

Home Page:https://firebase.google.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FirebaseCore import?

raymondwelch33 opened this issue · comments

I also noticed that the class has the following code:

/// Designated initializer requires a valid, non-nil Firebase user.
   /// - Parameter user: An instance of a Firebase `User`.
    init(for user: User) {
        
        self.user = user
        super.init(nibName: nil, bundle: nil)
    }

Why is this code needed? I have never seen it explained before?

The user is required to display information about the account. Depending on your own code, you may or may not put it in the designated initializer's parameters.

The FirebaseCore import is redundant due to the FirebaseAuth import.