My iOS app looks great in dark mode. I googled around but I couldn't find. How to leave the Dark mode effect on my app alone even though device is in light mode.
I don't know how to do it before iOS 13.
Any suggestions are welcome.
My iOS app looks great in dark mode. I googled around but I couldn't find. How to leave the Dark mode effect on my app alone even though device is in light mode.
I don't know how to do it before iOS 13.
Any suggestions are welcome.
You can do this by adding this line of code in app delegate.(For whole app level)
if #available(iOS 13.0, *) {
window?.overrideUserInterfaceStyle = .dark
}
Other option is to specify that mode in plist file
<key>UIUserInterfaceStyle</key>
<string>Dark</string>