KWStepper Versions Save

A stepper control with flexible UI and tailored UX.

2.5.3

4 years ago

Adds support for Swift Package Manager (#18).

2.5.2

4 years ago

Adds support for Swift 5.1 / Xcode 11 (#17).

2.5.1

5 years ago

Adds support for Swift 5 / Xcode 10.2.1.

2.5.0

5 years ago

Adds support for subclassing KWStepper (#12).

2.4.0

6 years ago

Adds optional KWStepperDidEndLongPress() delegate method and longPressEndedCallback for when a long press gesture on the decrement or increment button ends. Use longPressEnded to set longPressEndedCallback via method chaining:

stepper
    .wraps(true)
    .longPressEnded { stepper in
        // ...
    }

Note that a clamped value will end a long press gesture when wraps is set to false.

2.3.0

6 years ago

Adds support for Swift 4 / Xcode 9.

2.2.1

7 years ago

See the updated README for more details.

2.1.4

7 years ago

Adds support for Swift 3 / Xcode 8.

2.1.3

8 years ago

Adds support for Swift 2.2 / Xcode 7.3 by using the new #selector syntax.

2.1.2

8 years ago
  • Adds more comprehensive test coverage.
  • Fine-tunes when delegate methods and callbacks are executed.
  • Clarifies exactly when delegate methods and callbacks are executed in documentation.

Fine-tuning

  • The delegate methods and callbacks for decrementing / incrementing are executed via incrementValue() or decrementValue(), but not when setting value directly or when decrementing / incrementing results in clamping or wrapping.
  • The ValueChanged control event and valueChangedCallback are not executed when value is set to the previous value (e.g. value == oldValue), including when decrementing / incrementing results in clamping.