Skip to content

Releases: buh/CompactSlider

2.1.0

22 Nov 12:46
@buh buh

Choose a tag to compare

New Features:

  1. Precision Control - The new .precisionControl() option for fine-grained adjustments
  2. 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:

  1. Progress Range Clamping - Fixed rendering issues when values exceed bounds
  2. 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

26 Mar 10:02
@buh buh

Choose a tag to compare

Changes

  • Fixed warning #30.
  • Added a haptic feedback at 50% and snap to it for the linear center sliders.
  • Show the handle view also at 100% for linear sliders.

2.0.8

13 Mar 19:30
@buh buh

Choose a tag to compare

New option .simultaneousGesture

  • Attaches a simultaneous gesture to the slider and it has less priority than .highPriorityGesture option.

New demo SlidersInScrollView

Shows an example of sliders in a sheet and in a ScrollView.

2.0.7

28 Feb 08:24
@buh buh

Choose a tag to compare

Fixed #25

2.0.6

14 Feb 23:42
@buh buh

Choose a tag to compare

  • Fixed #22
  • Added animation for progressDidChange (#23)

Added a player demo for SystemSlider:
player_demo

2.0.5

08 Feb 09:05
@buh buh

Choose a tag to compare

Fix bug #21

2.0.4

08 Feb 08:13
@buh buh

Choose a tag to compare

  • Added .compactSliderOnChange modifier to observe configuration changes. The action calls on any configuration state or progress changes.
  • Added FocusState.isWheelScrolling for macOS. It's also could be animated.

Example:

CompactSlider(value: $value)
    .compactSliderOnChange {  configuration in
        print("Focus state:", configuration.focusState) 
    }

2.0.3

07 Feb 15:09
@buh buh

Choose a tag to compare

  • 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 .tapping animation event.
  • Fixed bugs from #19

2.0.2

05 Feb 20:58
@buh buh

Choose a tag to compare

  • 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)

2.0.1

03 Feb 18:54
@buh buh

Choose a tag to compare

Added additional documentation and did some minor cleanup.