Custom Google Sign-In button - iOS

后端 未结 10 2510
别那么骄傲
别那么骄傲 2020-12-24 01:19

I want to customize Google Sign-In button like below:-

I have tried below links, but none of them helped really much:- How to customize google sign in button?
ht

10条回答
  •  庸人自扰
    2020-12-24 01:56

    In GoogleSignIn SDK 5.0 and above GIDSignInUIDelegate has been revoked

    Add this below line, for custom google login button

    @IBAction func googleLoginPressed(sender: UIButton) {
        GIDSignIn.sharedInstance()?.presentingViewController = self
        GIDSignIn.sharedInstance()?.delegate = self
        GIDSignIn.sharedInstance()?.signIn()
    }
    

提交回复
热议问题