All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- allow using
outerTrackColor
with a single thumb. (thanks gregorio-michael!)
- make
distanceBetweenThumbs
work when also having a positivesnapStepSize
.
- support larger accessibility text (dynamic type) for value labels.
- add
distanceBetweenThumbs
to specify minimum distance between thumbs.
- don't pull-to-dismiss iOS 13 modal when sliding down a vertical slider.
- workaround rare layout problems on iOS 12 and 13.
- fix crash on iOS 9-10 introduced in 1.10.2 and only partially fixed in 1.10.4.
- fix crash on iOS 9-10 introduced in 1.10.2 (but reintroduces issue #36 on these older systems).
- don't let thumbs go outside track when slider is horizontal on iOS 12 and 13.
- update value labels when there are changes to
valueLabelFormatter
.
- add
isVertical
property that can be used in Interface builder.
- add public access to
draggedThumbIndex
to allow funding which thumb was dragged.
- when two thumbs overlap (
keepsDistanceBetweenThumbs == false
) let user drag lower thumb and not only upper thumb.
- support Swift Package Manager.
- fix Interface Builder render error.
- MiniLayout moved to SweeterSwift.
- add accessibility support.
- Swift 5, CocoaPods 1.7.
- UIAppearance support.
- turn haptic feedback off by setting
isHapticSnap
tofalse
.
- when a slider is in a scroll view, allow both to be dragged.
- range slider: make track color gray below first thumb and above last thumb (configurable through
outerTrackColor
).
- fix snap to steps on larger screen sizes (had rounding errors).
- add haptic feedback.
- Swift 4.2
- animate thumb movement to make it smoother.
- zero-width sliding area in iOS 12 caused all thumbs to be shown on left and crash on drag.
- implement
isContinuous
. - send
primaryActionTriggered
event in addition tovalueChanged
.
- correctly handle non-zero
minimumValue
in horizontal orientation.
- send
.touchUpInside
event when user finished dragging. (thanks benjaminfischer!)
- allow drag gesture to start past the edge of the slider, like in standard UISlider.
- use SwiftLint and SwiftFormat
- hasRoundTrackEnds (thanks benjaminfischer!)
- showsThumbImageShadow (thanks benjaminfischer!)
- Horizontal orientation bugs.
- Default label style is borderless.
- set slider orientation as either
.vertical
(default) or.horizontal
.
- Swift 4
- fix non-rounded values.