Skip to content

Instantly share code, notes, and snippets.

@henning-jh
Last active June 7, 2019 20:40
Show Gist options
  • Save henning-jh/4b4fc9aacc0e067495eaa74a0ded1646 to your computer and use it in GitHub Desktop.
Save henning-jh/4b4fc9aacc0e067495eaa74a0ded1646 to your computer and use it in GitHub Desktop.
Sign In with Apple: button press
@objc
func handleAuthorizationAppleIDButtonPress() {
let request = ASAuthorizationAppleIDProvider().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