Skip to content

Commit d2d056d

Browse files
authored
Update readme for 7.0.0 release (#270)
1 parent 019a3a7 commit d2d056d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ Creating a 'Sign in with Google' button in SwiftUI can be as simple as this:
7676

7777
```
7878
GoogleSignInButton {
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
```
113111
let 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
}
120116
let hostedButton = NSHostingView(rootView: signInButton)

0 commit comments

Comments
 (0)