init(kind:intent:provider:content:)
Creates a configuration for a widget by using a custom intent to provide user-configurable options.
Declaration
@MainActor @preconcurrency init<Provider>(kind: String, intent: Intent.Type = Intent.self, provider: Provider, @ViewBuilder content: @escaping (Provider.Entry) -> Content) where Intent == Provider.Intent, Provider : AppIntentTimelineProviderParameters
- kind:
A unique string that you choose.
- intent:
A custom intent containing user-editable parameters.
- provider:
An object that determines the timing of updates to the widget’s views.
- content:
A view that renders the widget.