Contents

body

The content and behavior of the control.

Declaration

@ControlWidgetConfigurationBuilder @MainActor @preconcurrency var body: Self.Body { get }

Discussion

For any controls that you create, provide a computed body property that defines the control using some control widget configuration.

Swift infers the control’s Body associated type based on the contents of the body property.