I'm following an online class (from December, 2016) and am getting the error in this screenshot.
Here's my code: // // FirebaseManager.swift
import UIKit
import Firebase
import FirebaseDatabase
import FirebaseAuth
import FirebaseAnalytics
class FirebaseManager: NSObject {
static let databaseRef = FIRDatabase.database().reference()
static var currentUserId:String = ""
static var currentUser:FIRUser? = nil
static func Login(email:String, password:String, completion: @escaping (_ success:Bool) ->
Void) {
FIRAuth.auth()?.signIn(withEmail: email, password: password, completion: { (user,error)
in
if let error = error {
print(error.localizedDescription)
completion(false)
} else {
curentUser = user
currentUserId = (user?.uid)!
completion(true)}
})
}
}
And here is the screenshot of the code from this example:
I've reviewed a few SO questions including this one but don't see an answer that applies to my situation.
Please see my attachedmy swift version settings swift settings. Attaching again as I don't see it.
Thanks for your help