Last active
March 21, 2020 04:33
-
-
Save MaatheusGois/446794b5c55aee699a2cd1e146ed2477 to your computer and use it in GitHub Desktop.
This file contains 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
//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