You can use it with storyboard and Programmatically
Easy to customize and interact
Negative value included
- iOS 11.0+
- Xcode 10+
CenterdUISlider is available through Swift Package Manager. To install
it, simply go to Xcode under File > Swift Packages > Add Package Dependency...
If you prefer not to use SPM, you can integrate CenterdUISlider into your project manually.
You can use CenterdUISlider from storyboard easily By changing the type of a regular UIView into CenterdUISlider and set its Moudle to be CenterdUISlider.
let centerdSlider = CenteredUISlider()
centerdSlider.rangeValue = 50 // The value will be between -25 to 25
centerdSlider.progressColor = .purple
centerdSlider.getSLiderValue = { value in
print(value)
}
Mohammed Reza Ghate
- https://github.com/mohammed1955
- https://www.linkedin.com/in/mohamadrezaghate/
- mohammed.r.ghate@gmail.com
CenteredUISlider is available under the MIT license. See the LICENSE file for more info.