Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
FormsApple

Wearable toggle

Change a controlled boolean setting from a wearable-sized row.

Public APILumenWatchToggleApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component.

Apple Watch · watchOS 9+

Native example

Use Wearable toggle

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.

Wearable toggle rendered in the watchOS simulator Lumen playground
Captured examplewatchOS simulator
swift
import LumenUI
import SwiftUI

struct WatchToggleExample: View {
    @State private var reminders = true

    var body: some View {
        LumenWatchToggle("Reminders", isOn: $reminders)
    }
}

Reference

Public API

The primary shared and platform-specific options exposed by LumenWatchToggle.

APIValues or typeDefaultDescription
titleNative localized textRequiredNames the setting.
isOnBoolean binding / value and callbackRequiredKeeps state application-owned.
detailOptional native textnil / nullAdds supporting setting context.
enabledBooleantruePrevents changes while disabled.
———Localized state text. When set, TalkBack announces each change while the row keeps focus.

Native behavior

Design and accessibility

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.

Accessibility

Exposes the setting name, checked state, and native toggle semantics in one touch target.

Shared component

Available on other platforms

Android / Compose
Apple docsSwiftUI package