CompactSlider is a control for selecting a value from a bounded linear range of values.
The slider is a replacement for the build-in slider and is designed specifically for SwiftUI. For me, the main motivation for writing a component that already exists is the very slow performance under macOS (e.g. when you need to resize the screen with multiple sliders or when animating) and the severely outdated design. At the same time, I was inspired by the slider design that Apple's Photos app developed, which makes heavy use of sliders.
Some of the requirements could be reduced if there is a demand for them.
You can find the generated DocC documentation here.
You can buy me a coffee here ☕️
CompactSlider is available under the MIT license
|Last commit: 2 weeks ago|
Added the scale visibility. Now it's possible to completely hide it or make it always visible. The default value is
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics