Skip to content

Instantly share code, notes, and snippets.

@henning-jh
Last active June 7, 2019 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save henning-jh/b4150ede5b3b3a9a2edc06f356805c0c to your computer and use it in GitHub Desktop.
Save henning-jh/b4150ede5b3b3a9a2edc06f356805c0c to your computer and use it in GitHub Desktop.
Sign In with Apple: create button
import AuthenticationServices
func createButton() {
let authorizationButton = ASAuthorizationAppleIDButton()
authorizationButton.addTarget(self, action:
#selector(handleAuthorizationAppleIDButtonPress),
for: .touchUpInside)
myView.addSubview(authorizationButton)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment