Contents

init(action:label:)

Creates a button template for a control that launches an app.

Declaration

@MainActor @preconcurrency init(action: Action, @ViewBuilder label: @escaping () -> Label) where ActionLabel == ControlWidgetButtonDefaultActionLabel, Action : OpenIntent

Parameters

  • action:

    The action your button performs when pressed.

  • label:

    A view that renders the button.

See Also

Initializers