Contents

userInterfaceStyle

The style associated with the user interface.

Declaration

var userInterfaceStyle: UIUserInterfaceStyle { 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.

See Also

Retrieving interface-related traits