From bf8a18f8d7f229050fae96295bd78024bc174880 Mon Sep 17 00:00:00 2001 From: "seongho.hong" Date: Sat, 10 Oct 2020 21:49:25 +0900 Subject: [PATCH] Set the button color to white when in dark mode --- OAuth/FirebaseOAuthUI/FUIOAuth.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OAuth/FirebaseOAuthUI/FUIOAuth.m b/OAuth/FirebaseOAuthUI/FUIOAuth.m index eed1b1b3515..d7a367fa727 100644 --- a/OAuth/FirebaseOAuthUI/FUIOAuth.m +++ b/OAuth/FirebaseOAuthUI/FUIOAuth.m @@ -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];