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 = UISl
in my opinion its more easier and more official to use following:
slider.semanticContentAttribute = .forceRightToLeft
Just flip the slider horizontally:
slider.transform = CGAffineTransform(scaleX: -1, y: 1)
Or take the slider value with
let realValue = slider.maximumValue - slider.minimumValue + slider.value;
And set it using
slider.value = slider.maximumValue - slider.minimumValue + realValue;
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)