Instance Method

preferredColorScheme(_:)

Sets the preferred color scheme for this view.

Declaration

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

See Also

Adopting View Color Schemes

func colorScheme(ColorScheme) -> View

Sets the view’s color scheme.

func accentColor(Color?) -> View

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