Do you have some neat idea/solution on how I could achieve varying density for values in UISlider. By this I mean we would have 20 steps in the left half of UISlider and 100 step on the right half of UISlider. That means the min value would be 0, the max value would be 120. but they would not be distributed evenly, but the left part would be much less dense.
Like that>
|0—————20—————120|
Assuming you want a linear progression from 0-20 in the first half and a linear progression from 20-120 in the second half then do the following:
Set the slider’s range from 0 – 200. Then when you need your desired value, use the following formula to convert the slider’s value to your desired value: