Contents

ControlWidgetButton

A control template representing a button.

Declaration

@MainActor @preconcurrency struct ControlWidgetButton<Label, ActionLabel, Action> where Label : View, ActionLabel : View

Overview

Buttons don’t have state; use them for fire-and-forget actions such as playing a sound or launching an app.

Topics

Initializers

Default action label

See Also

Setup and configuration