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.
- fix VoiceOver functionality.
- fix PrivacyInfo.xcprivacy for spm.
- add
thumbTouchExpansionRadius
to allow having large drag are with small thumb image.
- add privacy manifest PrivacyInfo.xcprivacy.
- add
valueLabelAlternatePosition
to allow more space for the value labels by alternating their positions for consecutive thumbs (eg top/bottom or leading/trailing).
- add
snapValues
to allow snapping to any series of values. - add optional
snapImage
to mark snap values over slider track. - add
centerThumbOnTrackEnd
.
- fix accentColor() for SwiftUI MultiValueSlider.
- add SwiftUI modifiers.
- add SwiftUI wrapper
MultiValueSlider
.
- allow returning
nil
fromvalueLabelTextForThumb
. (thanks @joeypatino!)
- apply tintColor to
minimumView
andmaximumView
.
- add
thumbTintColor
.
- add
valueLabelTextForThumb
. (thanks @ryota765!)
- update font and color of new value labels.
- add
valueLabelFont
.
- add
valueLabelColor
. (thanks @sluzhynskyi!)
- don't skip first snap marks when the snap values are small.
- 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.