spacenation / swiftui-sliders

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

Add step property. #66

Open Muhammadbarznji opened 1 year ago

Muhammadbarznji commented 1 year ago

Thanks for this project, can you add the step property, for example, adding five for each step or movement?

ay42 commented 1 year ago

Hi @Muhammadbarznji, We have a step property already. Will this fit your use case?

ValueSlider(value: $value, in: 0 ... 100, step: 5)
Muhammadbarznji commented 1 year ago

Hi @ay42, Thanks for the quick response, what about RangeSlider? in my case I have a price range. do you have any idea how to handle this case?

Volodymyr-13 commented 11 months ago

@ay42 Hey Alexander is it possible to have a step for RangeSlider?