AnonymousAnonymous -4 years ago
679 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 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 {

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)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download