Skip to content

Releases: buh/CompactSlider

1.2.1

18 Dec 15:45
@buh buh
Compare
Choose a tag to compare

Added Scroll Wheel events for macOS, which are enabled by default.

1.2.0

18 Dec 13:55
@buh buh
Compare
Choose a tag to compare
  • Merged PR: #16
  • Replaced the constructor parameter: enableDragGestureDelayForiOS with a new parameter: gestureOptions: Set<GestureOption>;
    • GestureOption's: dragGestureMinimumDistance(CGFloat), highPriorityGesture and delayedGesture.

1.1.6

24 Apr 18:39
@buh buh
Compare
Choose a tag to compare

Added parameter threshold for ProminentCompactSliderStyle. It will allow to control the switching from lowerColor to upperColor.

1.1.5

12 Mar 19:07
@buh buh
Compare
Choose a tag to compare

Added the scale visibility. Now it's possible to completely hide it or make it always visible. The default value is .hovering.

1.1.4

08 Mar 16:55
@buh buh
f9c020d
Compare
Choose a tag to compare

Added minHeight parameter (#8)

1.1.3

08 Mar 16:54
@buh buh
Compare
Choose a tag to compare

Fix #5 iOS 16.1 sliders inside Form.

1.1.2

03 Oct 16:20
@buh buh
Compare
Choose a tag to compare
  • Fixed slider not behaving correctly when it is placed inside scroll view for iOS/iPadOS/watchOS.
  • Fixed accidental tap on slider which changes its value immediately.

1.1.1

18 May 10:28
@buh buh
732be79
Compare
Choose a tag to compare
  • Added Swift 5.5 support
  • SwiftUI optimisation

1.1.0 Haptic Feedback

11 May 20:47
@buh buh
Compare
Choose a tag to compare

Haptic feedback

Haptic feedback will now be enabled by default for the snapped slider or for edge values. It can be disabled with the following modifier:

@State private var value = 0.5

var body: some View {
    CompactSlider(value: $value, step: 0.1) {
        Text("Int(value * 100)%") 
    }
    .compactSliderDisabledHapticFeedback(true)
}

Demo app

Another custom style has been added to the demo app.

example

1.0.0

08 May 13:08
@buh buh
Compare
Choose a tag to compare

First release! 🚀
All in all, it turned out to be quite comprehensive, which I hadn't quite planned for. But in the process of writing documentation and various user requests I found some interesting improvements, which I decided to add to the first release as well.
I hope the slider will be useful to you!