init(intent:label:)
Creates a button that performs an AppIntent.
Declaration
nonisolated init<I>(intent: I, @ViewBuilder label: () -> Label) where I : AppIntentParameters
- intent:
The
AppIntentto execute. - label:
A view that describes the purpose of the button’s
action.