Change slider direction

后端 未结 3 1342
無奈伤痛
無奈伤痛 2021-01-25 22:26

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         


        
3条回答
  •  一生所求
    2021-01-25 22:56

    in my opinion its more easier and more official to use following:

    slider.semanticContentAttribute = .forceRightToLeft
    

提交回复
热议问题