When to use it
Use for a boolean setting. Keep its value controlled, and persist or synchronize it in the application. Provide a concise label that remains meaningful in either state.
Change a controlled boolean setting from a wearable-sized row.
Apple availability
Import LumenUI in the target that uses this component.
Native example
Use for a boolean setting. Keep its value controlled, and persist or synchronize it in the application. Provide a concise label that remains meaningful in either state.
import LumenUI
import SwiftUI
struct WatchToggleExample: View {
@State private var reminders = true
var body: some View {
LumenWatchToggle("Reminders", isOn: $reminders)
}
}Reference
The primary shared and platform-specific options exposed by LumenWatchToggle.
| API | Values or type | Default | Description |
|---|---|---|---|
| title | Native localized text | Required | Names the setting. |
| isOn | Boolean binding / value and callback | Required | Keeps state application-owned. |
| detail | Optional native text | nil / null | Adds supporting setting context. |
| enabled | Boolean | true | Prevents changes while disabled. |
| — | — | — | Localized state text. When set, TalkBack announces each change while the row keeps focus. |
Native behavior
Use for a boolean setting. Keep its value controlled, and persist or synchronize it in the application. Provide a concise label that remains meaningful in either state.
Exposes the setting name, checked state, and native toggle semantics in one touch target.
Shared component