Structure

PlainButtonStyle

A button style that doesn’t style or decorate its content while idle, but may apply a visual effect to indicate the pressed, focused, or enabled state of the button.

Declaration

struct PlainButtonStyle

Overview

To apply this style to a button, or to a view that contains buttons, use the buttonStyle(_:) modifier.

Topics

Creating a Plain Button Style

init()

Creates a plain button style.

Rendering a Button

func makeBody(configuration: PlainButtonStyle.Configuration) -> View

Creates a view that represents the body of a button.

typealias PlainButtonStyle.Body

A view that represents the body of a button with the plain button style.

Relationships

See Also

Applying Standard Button Styles

struct DefaultButtonStyle

The default button style, based on the button’s context.

struct LinkButtonStyle

A button style for buttons that emulate links.

struct BorderedButtonStyle

A button style that applies standard border artwork based on the button’s context.

struct BorderlessButtonStyle

A button style that doesn’t apply a border.