Structure

BorderlessButtonStyle

A button style that doesn’t apply a border.

Declaration

struct BorderlessButtonStyle

Overview

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

Topics

Creating a Borderless Button Style

init()

Creates a borderless button style.

Rendering a Button

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

Creates a view that represents the body of a button.

typealias BorderlessButtonStyle.Body

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

Relationships

See Also

Applying Standard Button Styles

struct DefaultButtonStyle

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

struct 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.

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.