Reputation: 55
I have followed all procedure same as given in developer google for Google sign in but at the last when they said to connect the outlets, unfortunately, I am unable to do so, please guide me.
Upvotes: 1
Views: 866
Reputation: 913
In the action of your UIButton call
GIDSignIn.sharedInstance().signOut()
GIDSignIn.sharedInstance().signIn()
and it will behave exactly like a GIDSignInButton!
Upvotes: 0
Reputation: 178
I downloaded this demo from GitHub, and I noticed that GIDSignInButton
is not a UIButton
but a UIView
. So you may consider using UIView
instead of UIButton
.
Upvotes: 3
Reputation: 27448
comment that outlet and start toctrl+drag from that button to that class. from popup give outlet name what you want (exa: singninButton) and press connect. and make sure in assistant editor there is a class opened that you have set to that viewcontroller. hope this will help :)
Upvotes: 0
Reputation: 1136
please change its class first in the button settings from the UIButton to GIDSignInButton -> like here
Upvotes: 0