Last active
June 7, 2019 20:40
-
-
Save henning-jh/b4150ede5b3b3a9a2edc06f356805c0c to your computer and use it in GitHub Desktop.
Sign In with Apple: create button
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
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