Browse Source

Update readme for 7.0.0 release (#270)

Peter Andrews 3 năm trước cách đây
mục cha
commit
d2d056dc9e
1 tập tin đã thay đổi với 4 bổ sung8 xóa
  1. 4 8
      README.md

+ 4 - 8
README.md

@@ -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`
   }
 }
 ```
@@ -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)