Important: Starting May 1, 2024, Apple requires Privacy Manifests and signatures for iOS applications that use commonly-used SDKs, including GoogleSignIn-iOS. Upgrade to GoogleSignIn-iOS v7.1.0+ before May 1, 2024. Follow our upgrade guide.
Stay organized with collections
Save and categorize content based on your preferences.
GIDSignInButton
@interface GIDSignInButton : UIControl
This 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-19 UTC."],[[["\u003cp\u003e\u003ccode\u003eGIDSignInButton\u003c/code\u003e provides a pre-built "Sign in with Google" button for iOS apps that can be added programmatically or via Interface Builder.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should link the button to an action that initiates the sign-in flow using \u003ccode\u003eGIDSignIn\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe button's appearance is customizable with different styles (standard, wide, icon-only) and color schemes (dark, light).\u003c/p\u003e\n"]]],[],null,["# GoogleSignIn Framework Reference\n\nGIDSignInButton\n===============\n\n @interface GIDSignInButton : UIControl\n\nThis class provides the \"Sign in with Google\" button.\n\nYou can instantiate this class programmatically or from a NIB file. You should connect this\ncontrol to an `IBAction`, or something similar, that calls\nsignInWithPresentingViewController:completion: on [GIDSignIn](../Classes/GIDSignIn.html) and add it to your view\nhierarchy.\n- `\n ``\n ``\n `\n\n ### [style](#/c:objc(cs)GIDSignInButton(py)style)\n\n `\n ` \n The layout style for the sign-in button.\n Possible values:\n - kGIDSignInButtonStyleStandard: 230 x 48 (default)\n - kGIDSignInButtonStyleWide: 312 x 48\n - kGIDSignInButtonStyleIconOnly: 48 x 48 (no text, fixed size) \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic) ../Enums/GIDSignInButtonStyle.html style;\n\n- `\n ``\n ``\n `\n\n ### [colorScheme](#/c:objc(cs)GIDSignInButton(py)colorScheme)\n\n `\n ` \n The color scheme for the sign-in button.\n Possible values:\n - kGIDSignInButtonColorSchemeDark\n - kGIDSignInButtonColorSchemeLight (default) \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic) ../Enums/GIDSignInButtonColorScheme.html colorScheme;"]]