Skip to content

Instantly share code, notes, and snippets.

@yusufozgul
Last active June 12, 2019 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufozgul/ba1b4e12c525c6c6a3285c6c35cecfc9 to your computer and use it in GitHub Desktop.
Save yusufozgul/ba1b4e12c525c6c6a3285c6c35cecfc9 to your computer and use it in GitHub Desktop.
Sign in with Apple
@objc func authAppleID()
{
let appleIDProvider = ASAuthorizationAppleIDProvider()
let authRequest = appleIDProvider.createRequest()
authRequest.requestedScopes = [.email, .fullName]
let authController = ASAuthorizationController(authorizationRequests: [authRequest])
authController.presentationContextProvider = self
authController.delegate = self
authController.performRequests()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment