Skip to content

Instantly share code, notes, and snippets.

@MaatheusGois
Last active March 21, 2020 04:33
Show Gist options
  • Save MaatheusGois/446794b5c55aee699a2cd1e146ed2477 to your computer and use it in GitHub Desktop.
Save MaatheusGois/446794b5c55aee699a2cd1e146ed2477 to your computer and use it in GitHub Desktop.
//1
func setUpSignInAppleButton() {
authorizationButton.addTarget(self, action: #selector(handleAppleIdRequest), for: .touchUpInside)
authorizationButton.cornerRadius = 10
}
//2
class ViewController: UIViewController {
@IBOutlet weak var authorizationButton: ASAuthorizationAppleIDButton!
override func viewDidLoad() {
super.viewDidLoad()
setUpSignInAppleButton()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment