I am trying to prepare my app for the iOS13 "Sign in with Apple" feature. I have implemented the ASAuthorizationControllerDelegate
methods and set my ASAuthorizationController
's delegate. When I tap the sign in with Apple button, after I enter the password there is no response. The password is correct (I know this because the field shakes when incorrect), however nothing happens. The sign in dialog doesn't dismiss and the delegates aren't called.
@available(iOS 13.0, *)
@objc private func didTapAppleButton() {
let request = ASAuthorizationAppleIDProvider().createRequest()
request.requestedScopes = [.fullName, .email]
let vc = ASAuthorizationController(authorizationRequests: [request])
vc.presentationContextProvider = self
vc.delegate = self
vc.performRequests()
}
Does anyone else have this issue?
Do you allocated the code into a separate class so that your ViewController does not look like a trash heap? And you applied good practice principles to SOLID software development? Apl says - In vain XD!
Only ViewController can be a delegate.
It looks like a bug, alas.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With