Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anupamchugh/5f055763911641a8648c5a5138af83cb to your computer and use it in GitHub Desktop.
Save anupamchugh/5f055763911641a8648c5a5138af83cb to your computer and use it in GitHub Desktop.
func makeUIView(context: Context) -> ASAuthorizationAppleIDButton {
if UIScreen.main.traitCollection.userInterfaceStyle == .dark{
return ASAuthorizationAppleIDButton(authorizationButtonType: .signIn, authorizationButtonStyle: .white)
}
else{
return ASAuthorizationAppleIDButton(authorizationButtonType: .signIn, authorizationButtonStyle: .black)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment