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.
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\u003eThis documentation details classes for Google Sign-In on iOS, including configuration, user representation, and sign-in management.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGIDSignIn\u003c/code\u003e is the primary class for initiating and managing user sign-in with Google accounts.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGIDGoogleUser\u003c/code\u003e and \u003ccode\u003eGIDProfileData\u003c/code\u003e represent signed-in users and their basic profile information.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGIDSignInButton\u003c/code\u003e provides a pre-built "Sign in with Google" button for easy integration.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize \u003ccode\u003eGIDConfiguration\u003c/code\u003e to customize the client configuration for their application.\u003c/p\u003e\n"]]],[],null,["Classes\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n [GIDConfiguration](/identity/sign-in/ios/reference/Classes/GIDConfiguration)`\n ` \n This class represents the client configuration provided by the developer. \n\n Declaration \n Swift \n\n class GIDConfiguration : NSObject, NSCopying, NSSecureCoding\n\n Objective-C \n\n @interface GIDConfiguration : NSObject \u003cNSCopying, NSSecureCoding\u003e\n\n- `\n ``\n ``\n `\n\n [GIDGoogleUser](/identity/sign-in/ios/reference/Classes/GIDGoogleUser)`\n ` \n This class represents a signed-in user. \n\n Declaration \n Swift \n\n class GIDGoogleUser : NSObject, NSSecureCoding\n\n Objective-C \n\n @interface GIDGoogleUser : NSObject \u003cNSSecureCoding\u003e\n\n- `\n ``\n ``\n `\n\n [GIDProfileData](/identity/sign-in/ios/reference/Classes/GIDProfileData)`\n ` \n This class represents the basic profile information of a [GIDGoogleUser](/identity/sign-in/ios/reference/Classes/GIDGoogleUser). \n\n Declaration \n Swift \n\n class GIDProfileData : NSObject, NSCopying, NSSecureCoding\n\n Objective-C \n\n @interface GIDProfileData : NSObject \u003cNSCopying, NSSecureCoding\u003e\n\n- `\n ``\n ``\n `\n\n [GIDSignIn](/identity/sign-in/ios/reference/Classes/GIDSignIn)`\n ` \n This class is used to sign in users with their Google account and manage their session.\n\n For reference, please see \"Google Sign-In for iOS and macOS\" at\n \u003chttps://developers.google.com/identity/sign-in/ios\u003e \n\n Declaration \n Swift \n\n class GIDSignIn : NSObject\n\n Objective-C \n\n @interface GIDSignIn : NSObject\n\n- `\n ``\n ``\n `\n\n [GIDSignInButton](/identity/sign-in/ios/reference/Classes/GIDSignInButton)`\n ` \n This class provides the \"Sign in with Google\" button.\n\n You can instantiate this class programmatically or from a NIB file. You should connect this\n control to an `IBAction`, or something similar, that calls\n signInWithPresentingViewController:completion: on [GIDSignIn](/identity/sign-in/ios/reference/Classes/GIDSignIn) and add it to your view\n hierarchy. \n\n Declaration \n Objective-C \n\n @interface GIDSignInButton : UIControl\n\n- `\n ``\n ``\n `\n\n [GIDSignInResult](/identity/sign-in/ios/reference/Classes/GIDSignInResult)`\n ` \n A helper object that contains the result of a successful signIn or addScopes flow. \n\n Declaration \n Swift \n\n class GIDSignInResult : NSObject\n\n Objective-C \n\n @interface GIDSignInResult : NSObject\n\n- `\n ``\n ``\n `\n\n [GIDToken](/identity/sign-in/ios/reference/Classes/GIDToken)`\n ` \n This class represents an OAuth2 or OpenID Connect token. \n\n Declaration \n Swift \n\n class GIDToken : NSObject, NSSecureCoding\n\n Objective-C \n\n @interface GIDToken : NSObject \u003cNSSecureCoding\u003e"]]