green-code-initiative / ecoCode-android

Reduce the environmental footprint of your Java-based Android apps with SonarQube
https://ecocode.io
GNU General Public License v3.0
54 stars 17 forks source link

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

Closed Pierre-CGI closed 1 year ago

Pierre-CGI 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 UIUserInterfaceStylein 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.

zippy1978 commented 1 year ago

Moved this issue to the new iOs repository here: https://github.com/green-code-initiative/ecoCode-ios/issues/6