From 8ca4fe3c9abccea414e866023a7fc14aa202e6e4 Mon Sep 17 00:00:00 2001 From: Peter Andrews Date: Thu, 8 Dec 2022 15:34:11 -0800 Subject: [PATCH 1/2] Update readme for 7.0.0 release. --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index acd9acae..7807908b 100644 --- a/README.md +++ b/README.md @@ -76,9 +76,7 @@ Creating a 'Sign in with Google' button in SwiftUI can be as simple as this: ``` GoogleSignInButton { - GIDSignIn.sharedInstance.signIn( - with: configuration, - presenting: yourViewController) { user, error in + GIDSignIn.sharedInstance.signIn(withPresenting: yourViewController) { user, error in // check `error`; do something with `user` } } @@ -111,9 +109,7 @@ that it will be available for use in AppKit. ``` let signInButton = GoogleSignInButton { - GIDSignIn.sharedInstance.signIn( - with: configuration, - presenting: yourViewController) { user, error in + GIDSignIn.sharedInstance.signIn(withPresenting: yourViewController) { user, error in // check `error`; do something with `user` } } From 0d100b8ecff3318ae0a988ea2706cac51229f1f7 Mon Sep 17 00:00:00 2001 From: Peter Andrews Date: Fri, 9 Dec 2022 15:42:59 -0800 Subject: [PATCH 2/2] Completion takes GIDSignInResult. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7807908b..e3eb8d53 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,8 @@ Creating a 'Sign in with Google' button in SwiftUI can be as simple as this: ``` GoogleSignInButton { - GIDSignIn.sharedInstance.signIn(withPresenting: yourViewController) { user, error in - // check `error`; do something with `user` + GIDSignIn.sharedInstance.signIn(withPresenting: yourViewController) { signInResult, error in + // check `error`; do something with `signInResult` } } ``` @@ -109,8 +109,8 @@ that it will be available for use in AppKit. ``` let signInButton = GoogleSignInButton { - GIDSignIn.sharedInstance.signIn(withPresenting: yourViewController) { user, error in - // check `error`; do something with `user` + GIDSignIn.sharedInstance.signIn(withPresenting: yourViewController) { signInResult, error in + // check `error`; do something with `signInResult` } } let hostedButton = NSHostingView(rootView: signInButton)