You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Wallman
Add this to your SingInWithAppleButton's onCompletion handler
if case .success(_) = result { dismiss() }
So that it looks something like this: (assuming you are using the auth-account-linking/final project without modification)
SignInWithAppleButton(.signIn) { request in
viewModel.handleSignInWithAppleRequest(request)
} onCompletion: { result in
viewModel.handleSignInWithAppleCompletion(result)
if case .success(_) = result { dismiss() }
}
Applies to the auth-account-linking/final project.
Expected Behavior
When signing in with Apple, the sheet is not dismissed.
Actual Behavior
Sheet stays open.
Steps to Reproduce the Problem
Specifications
iOS 17.2.1 / iPhone 14
The text was updated successfully, but these errors were encountered: