Skip to content

Commit 0d1f63d

Browse files
authored
Use correct method signature.
1 parent 7ac0d3d commit 0d1f63d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Samples/Swift/DaysUntilBirthday/Shared/Services/GoogleSignInAuthenticator.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ final class GoogleSignInAuthenticator: ObservableObject {
3838
/// - returns: The signed in `GIDGoogleUser`.
3939
/// - throws: Any error that may arise during the sign in process.
4040
func signIn(with rootViewController: UIViewController) async throws -> GIDGoogleUser {
41-
return try await GIDSignIn.sharedInstance.signIn(
42-
presenting: rootViewController
43-
)
41+
return try await GIDSignIn.sharedInstance.signIn(withPresenting: rootViewController)
4442
}
4543
#endif
4644

@@ -50,9 +48,7 @@ final class GoogleSignInAuthenticator: ObservableObject {
5048
/// - returns: The signed in `GIDGoogleUser`.
5149
/// - throws: Any error that may arise during the sign in process.
5250
func signIn(with window: NSWindow) async throws -> GIDGoogleUser {
53-
return try await GIDSignIn.sharedInstance.signIn(
54-
presenting: window
55-
)
51+
return try await GIDSignIn.sharedInstance.signIn(withPresenting: window)
5652
}
5753
#endif
5854

0 commit comments

Comments
 (0)