Releases: buh/CompactSlider
Releases · buh/CompactSlider
2.1.0
New Features:
- Precision Control - The new .precisionControl() option for fine-grained adjustments
- Enhanced Scale API - Separated into three clear methods:
-.compactSliderScale()- Customize the default scale
-.compactSliderScaleStyles()- Use custom scale shape styles
-.compactSliderScaleView()- Completely custom scale views
Bug Fixes:
- Progress Range Clamping - Fixed rendering issues when values exceed bounds
- Scale Visibility - Fixed disappearing scales when using visibility without custom styles
RELEASE_NOTES_2.1.0.md include code examples, usage patterns, and explanations of how each feature works.
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
- Added
.compactSliderOnChangemodifier to observe configuration changes. The action calls on any configuration state or progress changes. - Added
FocusState.isWheelScrollingfor macOS. It's also could be animated.
Example:
CompactSlider(value: $value)
.compactSliderOnChange { configuration in
print("Focus state:", configuration.focusState)
}2.0.3
- Added a new
CompactSliderOption:.tapToSlide, which enables taps to slide. - Fixed inconsistency of shared values between sliders.
- Improved drag gesture events handling
- Added support multiple events for animations in the
compactSliderAnimation()modifier - Added
.tappinganimation event. - Fixed bugs from #19
2.0.2
- Fixed bug #17
- Split "System" slider in separate files for custom composition
- Added a new slider option:
expandOnFocusto 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)