A UISlider-like control with graduations (e.g. like sliders on DJ decks), can be used vertically or horizontally, optional haptic feedback
- IBInspectable
- Customizable graduations and cursor colors
- Customizable range
- Optional haptic feeback
- Horizonal or vertical
let slider = GraduatedSlider()
slider.minimumValue = 0
slider.maximumValue = 100
slider.addTarget(self, action: #selector(onValueChanged(_:)), for: .valueChanged)
slider.addTarget(self, action: #selector(onSliderTouchEnded(_:)), for: . touchUpInside)
slider.isHoritontal = true // default false
- iOS 10.0+
- Xcode 10
dependencies: [
.package(url: "https://github.com/sardon/GraduatedSlider", from: "1.0.0")
]