Instance Method

preferredColorScheme(_:)

No overview available.

Declaration

func preferredColorScheme(_ colorScheme: ColorScheme?) -> some View

See Also

Adopting View Color Schemes

func colorScheme(ColorScheme) -> View

Sets the view’s color scheme.

enum ColorScheme

The possible types of color schemes, like Dark Mode.

func accentColor(Color?) -> View

Sets the accent color for the view and the views it contains.