Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift 3 : AppDelegate does not conform to protocol GIDSignInDelegate

Now I'm trying to implement Google Login. I followed like this : https://developers.google.com/identity/sign-in/ios/sign-in?ver=swift

But I got a error in AppDelegate.swift :

class AppDelegate: UIResponder, UIApplicationDelegate, GIDSignInDelegate 
....

error :

Type 'AppDelegate' does not conform to protocol 'GIDSignInDelegate'

Help me.

like image 264
W.venus Avatar asked Oct 28 '16 06:10

W.venus


1 Answers

You need to implement these two methods of GIDSignInDelegate in your AppDelegate.

func sign(_ signIn: GIDSignIn!, didDisconnectWith user: GIDGoogleUser!, withError error: Error!) {

}

func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) {

}
like image 118
Nirav D Avatar answered Oct 31 '22 21:10

Nirav D