Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@ 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
// check `error`; do something with `user`
GIDSignIn.sharedInstance.signIn(withPresenting: yourViewController) { signInResult, error in
// check `error`; do something with `signInResult`
}
}
```
Expand Down Expand Up @@ -111,10 +109,8 @@ that it will be available for use in AppKit.

```
let signInButton = GoogleSignInButton {
GIDSignIn.sharedInstance.signIn(
with: configuration,
presenting: 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)
Expand Down