Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextField placeholder changes when using dark theme

When using the Dark appearance, placeholder color of UITextField becomes lighter and becomes unreadable.

Same showed up for UILabel when using the default color for the label but once I've changed to Black color, it shows properly.

like image 602
Adnan Majeed Avatar asked Dec 13 '22 10:12

Adnan Majeed


1 Answers

In your info.plist, set a new key ‘UIUserInterfaceStyle’ with value as ‘Light’.

After setting that, even in dark mode no font color will be changed

like image 138
Zahid Nazir Avatar answered Jan 22 '23 02:01

Zahid Nazir