- Fixed bug #17
- Split "System" slider in separate files for custom composition
- Added a new slider option:
expandOnFocus
to use for expanding background and progress when focused. - Added animations for some states:
.compactSliderAnimation(Animation, CompactSliderAnimationEvent)
- Added
HandleStyle.hidden()
- Added
View.compactSliderSystemFrame()
for easy adding the "system" frame to your custom sliders.
Example for expandOnFocus
and animations:
SystemSlider(value: $progress)
.systemSliderStyle(handleStyle: .hidden())
.compactSliderOptionsByAdding(.expandOnFocus(minScale: 0.4))
.compactSliderAnimation(.bouncy, when: .dragging)
.compactSliderAnimation(.bouncy, when: .hovering)