Releases: kyleweiner/KWStepper
Releases · kyleweiner/KWStepper
Version 2.5.3
Adds support for Swift Package Manager (#18).
Version 2.5.2
Adds support for Swift 5.1 / Xcode 11 (#17).
Version 2.5.1
Adds support for Swift 5 / Xcode 10.2.1.
Version 2.5.0
Adds support for subclassing KWStepper
(#12).
Version 2.4.0
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
.
Version 2.3.0
Adds support for Swift 4 / Xcode 9.
Version 2.2.1
- Adds support for method chaining.
- Adds
stepValue(_:)
—a convenience function for settingdecrementStepValue
and
incrementStepValue
simultaneously. - Adds
valueClamped(_:)
—a convenience function for settingmaxValueClampedCallback
and
minValueClampedCallback
simultaneously. - Patches rounding bug and adds
roundingBehavior
for modifying the rounding behavior when incrementing and decrementing. - Improves docs generated by jazzy.
See the updated README for more details.
Version 2.1.4
Adds support for Swift 3 / Xcode 8.
Version 2.1.3
Adds support for Swift 2.2 / Xcode 7.3 by using the new #selector
syntax.
Version 2.1.2
- 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()
ordecrementValue()
, but not when settingvalue
directly or when decrementing / incrementing results in clamping or wrapping. - The
ValueChanged
control event andvalueChangedCallback
are not executed whenvalue
is set to the previous value (e.g.value == oldValue
), including when decrementing / incrementing results in clamping.