Skip to content

Commit bf8a18f

Browse files
committed
Set the button color to white when in dark mode
1 parent 5382f75 commit bf8a18f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OAuth/FirebaseOAuthUI/FUIOAuth.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ + (FUIOAuth *)appleAuthProvider {
195195
fromBundleNameOrNil:@"FirebaseOAuthUI"];
196196
UIColor *buttonColor = [UIColor blackColor];
197197
UIColor *buttonTextColor = [UIColor whiteColor];
198-
if (UITraitCollection.currentTraitCollection.userInterfaceStyle == UIUserInterfaceStyleLight) {
198+
if (UITraitCollection.currentTraitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
199199
iconImage = [iconImage imageWithTintColor:[UIColor blackColor]];
200200
buttonColor = [UIColor whiteColor];
201201
buttonTextColor = [UIColor blackColor];

0 commit comments

Comments
 (0)