Contents

UIStepper

A control for incrementing or decrementing a value.

Declaration

@MainActor class UIStepper

Mentioned in

Overview

By default, pressing and holding a stepper’s button increments or decrements the stepper’s value repeatedly. The rate of change depends on how long the user continues pressing the control. To turn off this behavior, set the autorepeat property to false.

The maximum value must be greater than or equal to the minimum value. If you set a maximum or minimum value that would break this invariant, both values are set to the new value. For example, if the minimum value is 200 and you set a maximum value of 100, then both the minimum and maximum become 200.

Topics

Configuring the stepper

Accessing the stepper’s value

Customizing appearance

See Also

Controls