Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
FormsApple

Wearable value stepper

Adjust a bounded integer safely with large wearable controls.

Public APILumenWatchValueStepperApple / 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 value stepper

Use for short integer adjustments such as counts or durations. This is a numeric control; LumenStepper represents workflow progress. Supply localized action labels and a formatter for units. Rotary routing remains host-owned.

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

struct WatchCountExample: View {
    @State private var count = 5

    var body: some View {
        LumenWatchValueStepper("Count", value: $count, minimum: 1, maximum: 20)
    }
}

Reference

Public API

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

APIValues or typeDefaultDescription
titleNative localized textRequiredNames the value.
valueInteger binding / value and callbackRequiredPublishes changes only after an enabled interaction.
minimum / maximumInclusive integer bounds0..100Normalizes reversed bounds and clamps displayed values.
stepInteger1Uses 1 for nonpositive input and clamps each adjustment to the bounds.
enabledBooleantrueDisables all adjustment paths.
decrementLabel / incrementLabelNative localized textDecrease / IncreaseNames the adjustment actions.
formatValueInteger to StringNumeric stringFormats the visible and accessible value.

Native behavior

Design and accessibility

When to use it

Use for short integer adjustments such as counts or durations. This is a numeric control; LumenStepper represents workflow progress. Supply localized action labels and a formatter for units. Rotary routing remains host-owned.

Accessibility

Names the formatted value and increment/decrement actions, exposes adjustable semantics, and disables unavailable changes.

Shared component

Available on other platforms

Android / Compose
Apple docsSwiftUI package