Skip to content

Commit

Permalink
Merge pull request #907 from cozzin/feature/appleButtonDarkMode
Browse files Browse the repository at this point in the history
Fix Apple login button color to white when in dark mode
  • Loading branch information
morganchen12 committed Oct 12, 2020
2 parents 5382f75 + bf8a18f commit 5b69840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OAuth/FirebaseOAuthUI/FUIOAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ + (FUIOAuth *)appleAuthProvider {
fromBundleNameOrNil:@"FirebaseOAuthUI"];
UIColor *buttonColor = [UIColor blackColor];
UIColor *buttonTextColor = [UIColor whiteColor];
if (UITraitCollection.currentTraitCollection.userInterfaceStyle == UIUserInterfaceStyleLight) {
if (UITraitCollection.currentTraitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
iconImage = [iconImage imageWithTintColor:[UIColor blackColor]];
buttonColor = [UIColor whiteColor];
buttonTextColor = [UIColor blackColor];
Expand Down

0 comments on commit 5b69840

Please sign in to comment.