Toggle
A styled switch control with an optional label.
s0 add toggle
Usage
@State private var isOn = false
S0.Toggle("Airplane Mode", isOn: $isOn)S0.Toggle(isOn: $isEnabled)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| label | String? | nil | Optional text label displayed next to the switch. |
| isOn | Binding<Bool> | — | Binding to the toggle state. |