Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS Dark Mode Compatibility Issue - Dropdown items not visible #29

Open
Shanupa opened this issue Jul 1, 2020 · 2 comments
Open

IOS Dark Mode Compatibility Issue - Dropdown items not visible #29

Shanupa opened this issue Jul 1, 2020 · 2 comments

Comments

@Shanupa
Copy link

Shanupa commented Jul 1, 2020

In IOS Dark Mode, the dropdown items are not visible. We can see poor visible text. In Light Mode its working fine. Any fix regarding this issue ?

@Shanupa
Copy link
Author

Shanupa commented Jul 9, 2020

Can you help on this ?

@maurisor
Copy link

Hi guys,

I solved this issue by replacing the line 86 in the ListPicker.m file with this piece of code:
if (@available(iOS 12.0, *)) { switch (UIScreen.mainScreen.traitCollection.userInterfaceStyle) { case UIUserInterfaceStyleDark: [view setBackgroundColor:[UIColor colorWithRed:0.22 green:0.22 blue:0.22 alpha:1.0]]; break; case UIUserInterfaceStyleLight: case UIUserInterfaceStyleUnspecified: [view setBackgroundColor:[UIColor colorWithRed:0.97 green:0.97 blue:0.97 alpha:1.0]]; break; default: break; } }

That basically check if the Darkmode is enabled and set the background color of the picker black or white

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants