Skip to content

Instantly share code, notes, and snippets.

@spaquet
Created April 5, 2020 16:12
Show Gist options
  • Save spaquet/8837f12b1fd9f955fbdb276965988fe5 to your computer and use it in GitHub Desktop.
Save spaquet/8837f12b1fd9f955fbdb276965988fe5 to your computer and use it in GitHub Desktop.
Custom SwiftUI Apple Sign In button using the AppleSignIn Singleton
Button(action: {
AppleSignIn.sharedInstance.appleSignIn()
}) {
HStack (alignment: .center, spacing: 38) {
Image("apple")
.resizable()
.scaledToFill()
.frame(width: 18, height: 24, alignment: .center)
Text("Sign up With Apple")
.fontWeight(.semibold)
}
}.buttonStyle(SignupButtonStyle())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment