So I'm try to set up a login func (which worked) but when I test the login, I get to the login screen and login in. Then It shows a black screen.
func login(){
FIRAuth.auth()?.signInWithEmail(Username.text!, password: Password.text!, completion: {
user, error in
if error != nil{
print("Incorrect Username/Password")
}
else{
print("Welcome")
self.presentViewController(vc, animated: true, completion: nil)
}
})
}
Can anybody tell me what I am doing wrong. The signInWithEmail part doesn't affect the UIview.