AI-generated Key Takeaways
-
GIDSignInButton is a UIControl class providing the "Sign in with Google" button.
-
This button can be created programmatically or from a NIB file and should call
signInWithPresentingViewController:completion:onGIDSignIn. -
The button's appearance can be customized using the
styleproperty, offering Standard, Wide, and IconOnly options with different dimensions. -
The button's color scheme can be set using the
colorSchemeproperty, with options for Dark and Light.
GIDSignInButton
@interface GIDSignInButton : UIControlThis class provides the “Sign in with Google” button.
You can instantiate this class programmatically or from a NIB file. You should connect this
control to an IBAction, or something similar, that calls
signInWithPresentingViewController:completion: on GIDSignIn and add it to your view
hierarchy.
-
The layout style for the sign-in button. Possible values:
- kGIDSignInButtonStyleStandard: 230 x 48 (default)
- kGIDSignInButtonStyleWide: 312 x 48
- kGIDSignInButtonStyleIconOnly: 48 x 48 (no text, fixed size)
Declaration
Objective-C
@property (nonatomic) GIDSignInButtonStyle style; -
The color scheme for the sign-in button. Possible values:
- kGIDSignInButtonColorSchemeDark
- kGIDSignInButtonColorSchemeLight (default)
Declaration
Objective-C
@property (nonatomic) GIDSignInButtonColorScheme colorScheme;