AORangeSlider 1.0.6

AORangeSlider 1.0.6

LangLanguage SwiftSwift
ReleasedLast Release Jul 2019
SPMSupports SPM

Maintained by Andy1984.

  • By
  • Andy1984


Screenshot gif

AORangeSlider is a custom UISlider with two handler to pick a minimum and maximum range.

Adding AORangeSlider to your project

CocoaPods CocoaPods is the recommended way to add AORangeSlider to your project. Add the following line to your Podfile:

pod 'AORangeSlider', '~> 1.0'


let rangeSlider = AORangeSlider(frame: frame)

If you want to call a method only when touch ends

rangeSlider.changeValueContinuously = false;
rangeSlider.addTarget(self, action: #selector(sliderValueChanged(sender:)), for: .valueChanged)

else if you want to call a method whenever the value changes, no matter by code or by touch,

rangeSlider.valuesChangedHandler = {
	//write your code here, and pay attention to Circular Reference.


  • minimumValue : The minimum possible value of the range
  • maximumValue : The maximum possible value of the range
  • lowHandleImageNormal: The image of low thumb
  • highHandleImageNormal: The image of high thumb
  • lowValue: set low value programmatically
  • highValue: set high value programmatically
  • func setValue(low: Double, high: Double, animated: Bool) set values animated
  • stepValue: move animatedly to a stepValue when touch ends
  • stepValueContinuously: If true, the thumb will not move until it hit a new step