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.
GoogleSignIn Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
@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.
-
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)
-
The color scheme for the sign-in button.
Possible values:
- kGIDSignInButtonColorSchemeDark
- kGIDSignInButtonColorSchemeLight (default)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-19 UTC.
[null,null,["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;"]]