Enumeration

ColorScheme

The possible types of color schemes, like Dark Mode.

Declaration

enum ColorScheme

Overview

The color scheme enumerates the user setting options for Light or Dark Mode. It also provides the light or dark options for any particular view when the app wants to override the user setting.

Relationships

Conforms To

See Also

Adopting View Color Schemes

func colorScheme(ColorScheme) -> View

Sets the view’s color scheme.

func preferredColorScheme(ColorScheme?) -> View

Sets the preferred color scheme for this view.

struct PreferredColorSchemeKey

A key for specifying the preferred color scheme.