spacenation / swiftui-sliders

:rocket: SwiftUI Sliders with custom styles
MIT License
820 stars 87 forks source link

Minimum Difference between upperBound and lowerBound #55

Open Noor-Ahmed-Natali opened 2 years ago

Noor-Ahmed-Natali commented 2 years ago

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.

alex-sarkisov commented 1 year ago

Any updates on this?

ay42 commented 1 year ago

@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!

alex-sarkisov commented 1 year ago

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