One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

PreferredColorSchemeKey

struct · iOS 13.0+ · SDK 27.1

struct PreferredColorSchemeKey

A key for specifying the preferred color scheme. Don't use this key directly. Instead, set a preferred color scheme for a view using the ``View/preferredColorScheme(_:)`` view modifier. Get the current color scheme for a view by accessing the ``EnvironmentValues/colorScheme`` value.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PreferredColorSchemeKey.reduce(value:nextValue:)

callback cannot propagate synchronous failure

All SwiftUICore types →