iOS Question UIScreen.mainScreen.traitCollection.userInterfaceStyle and B4i

Semen Matusovskiy

Well-Known Member
Licensed User
I decided to make my app Dark Mode ready :) and found an enemy.
Why B4i inserts <key>UIUserInterfaceStyle</key><string>Light</string> ?

After some experiments I understood that to support both modes (light and dark) it's neccessary to add
B4X:
#PlistExtra: <key>UIUserInterfaceStyle</key><string>Automatic</string>
 
Last edited:
Top