Open Wallman opened 7 months ago
@peterfriese Would love to hear your input on this 🙏
@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() }
}
I'm making a PR to fix this issue :)
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