init(kind:provider:content:)
Creates a configuration for a widget, with no user-configurable options.
Declaration
@MainActor @preconcurrency init<Provider>(kind: String, provider: Provider, @ViewBuilder content: @escaping (Provider.Entry) -> Content) where Provider : TimelineProviderParameters
- kind:
A unique string that you choose.
- provider:
An object that determines the timing of updates to the widget’s views.
- content:
A view that renders the widget.