init(kind:provider:content:)
Creates a configuration for a control that uses a custom app intent to provide user-configurable options.
Declaration
@MainActor @preconcurrency init<Provider>(kind: String, provider: Provider, @ControlWidgetTemplateBuilder content: @escaping (Provider.Value) -> Content) where Configuration == Provider.Configuration, Provider : AppIntentControlValueProviderParameters
- kind:
A string that uniquely identifies the type of control.
- provider:
An object that provides a value to the control template. The provider uses your custom intent to prepare this value.
- content:
A template that renders the control.