init(kind:content:)
Creates a configuration for a control, with no user-configurable options.
Declaration
@MainActor @preconcurrency init(kind: String, @ControlWidgetTemplateBuilder content: @escaping () -> Content)Parameters
- kind:
A string that uniquely identifies the type of control.
- content:
A template that renders the control.