I would to change a slider's direction from right to left. I want 0 to be on the right side.
For example:
My slider:
let slider = UISlider()
slider.minimumValue = 0
slider.maximumValue = 0
slider.isContinuous = true
slider.tintColor = UIColor.red
slider.value = 0
slider.translatesAutoresizingMaskIntoConstraints = false
I'm not sure if this is possible.
Just flip the slider horizontally:
Or take the slider value with
And set it using
Like that the slider does not need to be visually transformed, and will still respond correctly to any other input methods (keyboard, accessibility input, etc)