PreferredColorSchemeKey
A key for specifying the preferred color scheme.
Declaration
struct PreferredColorSchemeKeyOverview
Don’t use this key directly. Instead, set a preferred color scheme for a view using the preferredColorScheme(_:) view modifier. Get the current color scheme for a view by accessing the colorScheme value.