Skip to content

Instantly share code, notes, and snippets.

@MaatheusGois
Created March 21, 2020 02:50
Show Gist options
  • Save MaatheusGois/416085e4c8feb7d8134e5f63a8cbc1ba to your computer and use it in GitHub Desktop.
Save MaatheusGois/416085e4c8feb7d8134e5f63a8cbc1ba to your computer and use it in GitHub Desktop.
@objc func handleAppleIdRequest() {
//1
let appleIDProvider = ASAuthorizationAppleIDProvider()
let request = appleIDProvider.createRequest()
request.requestedScopes = [.fullName, .email]
//2
let authorizationController = ASAuthorizationController(authorizationRequests: [request])
//3
authorizationController.delegate = self
//4
authorizationController.performRequests()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment