Last active
June 7, 2019 20:40
-
-
Save henning-jh/4b4fc9aacc0e067495eaa74a0ded1646 to your computer and use it in GitHub Desktop.
Sign In with Apple: button press
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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