selection/DSStepper

DSStepper

selection
since v2.0

Numeric 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

PropTypeDefaultDescription
valuereqBinding<Int>Bound integer value.
rangeClosedRange<Int>0...99Allowed value range.
stepInt1Increment/decrement step.
labelString?nilOptional label.

Examples

Cart quantity

Quantity stepper in a cart row.

swift
DSStepper(value: $item.quantity, range: 1...99)

Related Components