'iOS, Swift Application is always running in Dark Mode

So I just want my app to always run in dark mode. Even if the device appearance in in Light I still want the app to run in dark mode. Is this possible?



Solution 1:[1]

Yes, It's possible, You must Add "Appearance" key to "Dark" in Info.plist such as:

enter image description here

Solution 2:[2]

You can set UIUserInterfaceStyle to Dark in your Info.plist as explained in Is it possible to opt-out of dark mode on iOS 13?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Maziar Saadatfar
Solution 2 Sulthan