muZZkat/NMRangeSlider

How to show both min and max values?

Opened this issue · 1 comments

As per subject, is it possible? But I'm using swift.

To set both values:

rangeSlider.setLowerValue(18, upperValue: 21, animated: true)

To track change event:

rangeSlider.addTarget(self, action: "onRangeSliderChange", forControlEvents: UIControlEvents.ValueChanged)

And add func

func onRangeSliderChange() {
        let min = rangeSlider.lowerValue
        let max = rangeSlider.upperValue
    }