Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SergeyPetrachkov/3bd2f908cf58ac024a7e9edb673a7df3 to your computer and use it in GitHub Desktop.
Save SergeyPetrachkov/3bd2f908cf58ac024a7e9edb673a7df3 to your computer and use it in GitHub Desktop.
handleAuthorizationAppleIDButtonPress
@available(iOS 13.0, *)
@objc
private func handleAuthorizationAppleIDButtonPress() {
let appleIDProvider = ASAuthorizationAppleIDProvider()
let request = appleIDProvider.createRequest()
request.requestedScopes = [.fullName, .email]
let authorizationController = ASAuthorizationController(authorizationRequests: [request])
authorizationController.delegate = self
authorizationController.presentationContextProvider = self
authorizationController.performRequests()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment