Anonymous Anonymous - 26 days ago
109 0

Hi. I have created several class and i am trying to make a login/sign up screen. I created a DataService class for all data and info connected to Firebase. And i have also Signup class for my Sign up View.

How can i solve this.?

Swift

Swift 3. Dataservice class has no member "Sign up".

The code in DataService class. 

func SignUp(username: String, email: String, password: String, data: NSData) {
        FIRAuth.auth()?.createUser(withEmail: email, password: password, completion: { (user, error) in
            if let error = error {
                print(error.localizedDescription)
                return
            }


And the code i Sign up class:   The error here is " Value of type DataService has no member "Sign up""

        DataService.dataservice.SignUp(username: username, password: password, email: email, data: data)
Comments