Post

Replies

Boosts

Views

Activity

Reply to How can I know when ASAuthorizationController is cancelled?
I assume by cancel case, you want to be notified when the user cancels the Sign in with Apple login flow. Yes, when the user presses the "Cancel" button. Is there some functionality you are trying to achieve with that? Yes, I'm using the ASAuthorizationController with both ASAuthorizationAppleIDRequest and ASAuthorizationPasswordRequest, which, if I understood correctly, presents the sheet only if the user already has an existing Apple or password account. Only if the user doesn't have an existing account, or cancels the sheet, do we want to present our (manual) Log in / Sign up screen. So, for this, I want to know when the sheet is cancelled, or else, our Log in / Sign up screen never shows up. Would it be ok to swizzle the private authorizationDidCancel: method as a workaround?
Jun ’20