Skip to content

2.0.2

Latest
Compare
Choose a tag to compare
@buh buh released this 05 Feb 20:58
  • 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)