selection/DSStepper
DSStepper
selectionNumeric input with − and + buttons. Respects min/max bounds and disables the buttons at limits.
iOS 17+macOS 14+
Purpose
Quantity selectors in cart items, ticket booking, and numeric configuration.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| valuereq | Binding<Int> | — | Bound integer value. |
| range | ClosedRange<Int> | 0...99 | Allowed value range. |
| step | Int | 1 | Increment/decrement step. |
| label | String? | nil | Optional label. |
Examples
Cart quantity
Quantity stepper in a cart row.
swift
DSStepper(value: $item.quantity, range: 1...99)