Created
November 13, 2019 09:41
-
-
Save anupamchugh/5f055763911641a8648c5a5138af83cb 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
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