Generic Instance Method

buttonStyle(_:)

Sets the style for buttons within this view.

Declaration

func buttonStyle<S>(_ style: S) -> some View where S : ButtonStyle

See Also

Styling Control Views

func buttonStyle<S>(S) -> View

Sets the style for buttons within this view.

func datePickerStyle<S>(S) -> View

Sets the style for date pickers within this view.

func menuButtonStyle<S>(S) -> View

Sets the style for menu buttons within this view.

func pickerStyle<S>(S) -> View

Sets the style for pickers within this view.

func textFieldStyle<S>(S) -> View

Sets the style for text fields within this view.

func toggleStyle<S>(S) -> View

Sets the style for toggles within this view.

func defaultWheelPickerItemHeight(CGFloat) -> View

Sets the default wheel-style picker item height.

func horizontalRadioGroupLayout() -> View

Sets the style for radio group style pickers within the view’s environment to be radio buttons horizontally arranged inside of the layout.

func controlSize(ControlSize) -> View

Sets the size class, like regular or small, for controls within this view.

enum ControlSize

The size classes, like regular or small, that you can apply to controls within a view.