How to indicate app is dark mode only in Xcode 13?

When starting a project from scratch in Xcode 13, an app info property is put in the target settings under "info" or in a separate file "appname-iOS-info".

So where should I put the UIUserInterfaceStyle property to indicate that an app is dark mode only?

Or is there another way to indicate that an app is dark mode only?

Answered by Claude31 in 678351022

You should add it in the info.plist. In your Info.plist, UIUserInterfaceStyle set it to Dark.

You could also do it programmatically, on a VC by VC basis.

have a look here on all possible options:

https : / / w w w .avanderlee. com/swift/dark-mode-support-ios/

Accepted Answer

You should add it in the info.plist. In your Info.plist, UIUserInterfaceStyle set it to Dark.

You could also do it programmatically, on a VC by VC basis.

have a look here on all possible options:

https : / / w w w .avanderlee. com/swift/dark-mode-support-ios/

How to indicate app is dark mode only in Xcode 13?
 
 
Q