presentAuthorizationViewController(completion:)
Asks the authorization service to show the extension’s view controller to the user.
Declaration
func presentAuthorizationViewController(completion: @escaping @Sendable (Bool, (any Error)?) -> Void)func presentAuthorizationViewController() async throwsParameters
- completion:
A completion handler that the method uses to indicate whether the view controller was presented successfully, and the specific error if not.
Discussion
This is only valid during authentication requests. If the system can’t show the controller, the completion returns an error.