Contents

userInterfaceStyle

The style associated with the user interface.

Declaration

var userInterfaceStyle: UIUserInterfaceStyle { get set }

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

Getting and setting trait values