For some reason, this function of mine doesn't work.
@IBAction func signIn(_ sender: Any) {
if emailTextField.text !="" && passwordTextField.text !="" {
FIRAuth.auth()?.signIn(withEmail: emailTextField.text!, password: passwordTextField.text!, completion: user, error) in
if error != nil {
} else {
print("Sucessfully logged in");
}
}
performSegue(withIdentifier: CONTACTS_SEGUE, sender: nil);
}
These are the errors I'm getting: http://prntscr.com/f2iuye