swiftui-sliders icon indicating copy to clipboard operation
swiftui-sliders copied to clipboard

Minimum Difference between upperBound and lowerBound

Open Noor-Ahmed-Natali opened this issue 3 years ago • 3 comments

I am using this library for range slider in my project for age range. now i want minimum 5 years of difference in between minimum age and maximum selected i am unable to find any thing regarding this.

Noor-Ahmed-Natali avatar Aug 22 '22 06:08 Noor-Ahmed-Natali

Any updates on this?

alex-sarkisov avatar Oct 11 '22 13:10 alex-sarkisov

@Noor-Ahmed-Natali @alex-sarkisov In the release 2.1.0 you can now specify distance range. (Minimum ... Maximum)

RangeSlider(range: $model.range, distance: 0.1 ... 1.0)

Hope this helps!

ay42 avatar Oct 12 '22 05:10 ay42

Thank you so much @ay42. Super useful update :)

alex-sarkisov avatar Oct 12 '22 07:10 alex-sarkisov