Contents

ControlWidgetToggle

A control template representing a toggle.

Declaration

@MainActor @preconcurrency struct ControlWidgetToggle<Label, ValueLabel, Action> where Label : View, ValueLabel : View

Overview

Toggles are controls that have two states, “off” and “on”.

Topics

Initializers

Default action label

See Also

Setup and configuration