Contents

init(kind:provider:content:)

Creates a configuration for a control, with no user-configurable options.

Declaration

@MainActor @preconcurrency init<Provider>(kind: String, provider: Provider, @ControlWidgetTemplateBuilder content: @escaping (Provider.Value) -> Content) where Provider : ControlValueProvider

Parameters

  • kind:

    A string that uniquely identifies the type of control.

  • provider:

    An object that provides a value to the control template.

  • content:

    A template that renders the control.