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.
Adjust a bounded integer safely with large wearable controls.
Apple availability
Import LumenUI in the target that uses this component.
Native example
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.
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
The primary shared and platform-specific options exposed by LumenWatchValueStepper.
| API | Values or type | Default | Description |
|---|---|---|---|
| title | Native localized text | Required | Names the value. |
| value | Integer binding / value and callback | Required | Publishes changes only after an enabled interaction. |
| minimum / maximum | Inclusive integer bounds | 0..100 | Normalizes reversed bounds and clamps displayed values. |
| step | Integer | 1 | Uses 1 for nonpositive input and clamps each adjustment to the bounds. |
| enabled | Boolean | true | Disables all adjustment paths. |
| decrementLabel / incrementLabel | Native localized text | Decrease / Increase | Names the adjustment actions. |
| formatValue | Integer to String | Numeric string | Formats the visible and accessible value. |
Native behavior
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.
Names the formatted value and increment/decrement actions, exposes adjustable semantics, and disables unavailable changes.
Shared component