init(action:label:)
Creates a button template for a control.
Declaration
@MainActor @preconcurrency init(action: Action, @ViewBuilder label: @escaping () -> Label) where ActionLabel == ControlWidgetButtonDefaultActionLabel, Action : AppIntentParameters
- action:
The action your button performs when pressed.
- label:
A view that renders the button.