The style associated with the user interface.
SDKs
- iOS 12.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
Framework
- UIKit
Declaration
var userInterfaceStyle: UIUser Interface Style { get }
Discussion
Use this trait to determine whether your interface should be configured with a dark or light appearance. The default value of this trait is set to the corresponding appearance setting on the user's device.