Home

Awesome

RangeSlider

License Platform Version

Summary

A simple range slider made in Swift.

Screenshot

Use

This control is IBDesignable and uses the target-action pattern for change notifications.

In order to be notified when either thumb value changes, register for .valueChanged:

let rangeSlider = RangeSlider(frame: frame)
view.addSubView(rangeSlider)
rangeSlider.addTarget(self, action: #selector(viewController.rangeSliderValueChanged(_:)), for: .valueChanged)

Configuration

The range slider can be customized and information can be accessed through these properties :

Installation

RangeSlider is available through Swift Package Manager and CocoaPods.

Cocoapods

To install it, simply add the following line to your Podfile :

pod "WARangeSlider"

Author

William Archimede

License

RangeSlider is available under the MIT License