Custom Google Sign-In button - iOS

后端 未结 10 2525
别那么骄傲
别那么骄傲 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 02:02

    Swift 5.2:-

    Add below lines in your view controller
    
    func googleLoginButtonPressed(sender: UIButton) {
        GIDSignIn.sharedInstance()?.presentingViewController = self
        GIDSignIn.sharedInstance()?.delegate = self
        GIDSignIn.sharedInstance()?.signIn()
    }
    

提交回复
热议问题