File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,8 @@ Creating a 'Sign in with Google' button in SwiftUI can be as simple as this:
7676
7777```
7878GoogleSignInButton {
79- GIDSignIn.sharedInstance.signIn(
80- with: configuration,
81- presenting: yourViewController) { user, error in
82- // check `error`; do something with `user`
79+ GIDSignIn.sharedInstance.signIn(withPresenting: yourViewController) { signInResult, error in
80+ // check `error`; do something with `signInResult`
8381 }
8482}
8583```
@@ -111,10 +109,8 @@ that it will be available for use in AppKit.
111109
112110```
113111let signInButton = GoogleSignInButton {
114- GIDSignIn.sharedInstance.signIn(
115- with: configuration,
116- presenting: yourViewController) { user, error in
117- // check `error`; do something with `user`
112+ GIDSignIn.sharedInstance.signIn(withPresenting: yourViewController) { signInResult, error in
113+ // check `error`; do something with `signInResult`
118114 }
119115}
120116let hostedButton = NSHostingView(rootView: signInButton)
You can’t perform that action at this time.
0 commit comments