Przeglądaj źródła

Use correct method signature.

Peter Andrews 3 lat temu
rodzic
commit
0d1f63dae2

+ 2 - 6
Samples/Swift/DaysUntilBirthday/Shared/Services/GoogleSignInAuthenticator.swift

@@ -38,9 +38,7 @@ final class GoogleSignInAuthenticator: ObservableObject {
   /// - returns: The signed in `GIDGoogleUser`.
   /// - throws: Any error that may arise during the sign in process.
   func signIn(with rootViewController: UIViewController) async throws -> GIDGoogleUser {
-    return try await GIDSignIn.sharedInstance.signIn(
-      presenting: rootViewController
-    )
+    return try await GIDSignIn.sharedInstance.signIn(withPresenting: rootViewController)
   }
   #endif
 
@@ -50,9 +48,7 @@ final class GoogleSignInAuthenticator: ObservableObject {
   /// - returns: The signed in `GIDGoogleUser`.
   /// - throws: Any error that may arise during the sign in process.
   func signIn(with window: NSWindow) async throws -> GIDGoogleUser {
-    return try await GIDSignIn.sharedInstance.signIn(
-      presenting: window
-    )
+    return try await GIDSignIn.sharedInstance.signIn(withPresenting: window)
   }
   #endif