Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIUserInterfaceStyle key is not available in Info.plist in Xcode 12, how to disable Dark Mode in Xcode 12 from Info.plist?

I am trying to disable Dark Mode support by setting UIUserInterfaceStyle key to Light in Info.plist file but now it's not available in Info.plist in Xcode 12.

enter image description here

Is it still possible to disable Dark Mode support from Info.plist file for iOS Apps in Xcode 12.

like image 536
Pramod Avatar asked Dec 18 '22 12:12

Pramod


2 Answers

It still exists. Use Appearance key. if you want to find UIUserInterfaceStyle, just right click to open menu, and check Raw Keys & Values, and you will be able to add UIUserInterfaceStyle.

like image 193
Li Jin Avatar answered Feb 02 '23 01:02

Li Jin


Now You can use Appearance key in info.plist file to Avoid Dark Modeenter image description here

like image 25
Maul Avatar answered Feb 02 '23 00:02

Maul