Contents

init(intent:label:)

Creates a button that performs an AppIntent.

Declaration

nonisolated init<I>(intent: I, @ViewBuilder label: () -> Label) where I : AppIntent

Parameters

  • intent:

    The AppIntent to execute.

  • label:

    A view that describes the purpose of the button’s action.

See Also

Creating a button to perform an App Intent