green-code-initiative / ecoCode-ios

Reduce the environmental footprint of your Swift-based iOS apps with SonarQube
https://ecocode.io
GNU General Public License v3.0
4 stars 5 forks source link

[iOS] Sobriety - Disabled Dark Mode (ESOB004) #6

Open zippy1978 opened 1 year ago

zippy1978 commented 1 year ago

Dark Mode was introduced in iOS 13. It allows the user to switch its system to a dark mode and the apps inherits it automatically by default. Yet is possible to overrides it to light mode by setting the value Light for the key UIUserInterfaceStyle in the Information Property List. This should be avoided since displaying dark colors has a significant impact on energy consumption for mobile devices with OLED screens.