-
-
Save interstateone/dbe67fa6f6a68b107e3b4078cb6cc9bb 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