Skip to content

Commit 5b69840

Browse files
authored
Merge pull request #907 from cozzin/feature/appleButtonDarkMode
Fix Apple login button color to white when in dark mode
2 parents 5382f75 + bf8a18f commit 5b69840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: OAuth/FirebaseOAuthUI/FUIOAuth.m

+1-1
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)