Skip to content

Instantly share code, notes, and snippets.

@Yoloabdo
Last active June 4, 2020 20:00
Show Gist options
  • Select an option

  • Save Yoloabdo/c3c5153d872f555a00a01196302015e0 to your computer and use it in GitHub Desktop.

Select an option

Save Yoloabdo/c3c5153d872f555a00a01196302015e0 to your computer and use it in GitHub Desktop.
class ViewController: UIViewController {
// You've to use lazy since you're using self here, or you can set it on init, viewDidload, depends on your usage.
lazy var userAuthenticator = UserAuthenticator(self)
func didTapAppleSignin() {
userAuthenticator.authenticate(.apple)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment