This package provides a slider that can provide non-linear tapers built in to the slider. It has some built in functions, but the developer can provide thier own function and it's inverse pair.
Requires: Platform targets iOS 15 or later, MacOS 11 or later SwiftUI
It is still under development, but mostly bug fixes at this time.
See the ExamplesView in the package but generally once can call it simply:
TaperSlider(value: $slider1Value, taperStyle: .logp1)
with more specificty:
TaperSlider(
value: $slider3Value,
outputRange: 1...10,
taperStyle: .custominvlogbase(base: 3),
taperInputRange: 0.5...1.2
)
or even with a cutom function pair:
TaperSlider(
value: $slider5Value,
outputRange: 1...10,
taperStyle: .dangereuse(pair: customFunctionPair, isClamped: false)
taperInputRange: safeRange
)
- 0.0.0
- Current State. Wouldn't exactly call it "released"
- Gist with a log10 example talk
- Alternate approach with an "adaper binding" from "Meet WeatherKit"
- More on Custom Bindings including "Reducer" example.
Feature not yet available.