SwiftRangeSlider icon indicating copy to clipboard operation
SwiftRangeSlider copied to clipboard

How do we know the current selected Knob?

Open patrickmarshall opened this issue 6 years ago • 1 comments

Hello Brian! This is a very good pod btw! Im using this pod regularly in my project.

Anyway there is something I want to ask, In @IBAction func rangeSliderValueChanged(_ sender: Any), how do we know the current selected Knob?

I'm about to change the step according to the current selected Knob value. If it's getting higher than the step also get higher. if it's getting lower than the step getting more precision.

example: if rangeSlider.lowerValue < 1000000.0 { rangeSlider.stepValue = 10000.0 } else if rangeSlider.lowerValue < 1000000.0 { rangeSlider.stepValue = 100000.0 } else { rangeSlider.stepValue = 1000000 } but in that case, it only handle the lowerValue.

Thank you :)

patrickmarshall avatar Mar 18 '18 02:03 patrickmarshall

Hello

I have similar requirement - Can I get current selected Knob?

Thanks

NancyKashyap-Stride avatar Nov 29 '19 02:11 NancyKashyap-Stride