Contents

prefersDarkUserInterfaceStyle

A Boolean value that determines whether the system draws the user interface in Dark Mode.

Declaration

var prefersDarkUserInterfaceStyle: Bool { get set }

Discussion

To adopt the dark user interface style, set this value to true before you provide the root template or push any templates. The default value is false, which allows templates to change between light and dark styles.

See Also

Configuring the Interface Controller