How customise Slider blue line in SwiftUI?

后端 未结 4 1164
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 03:31

Like in UISlider

let slider = UISlider()

slider.minimumTrackTintColor = .red
4条回答
  •  一生所求
    2021-01-05 03:57

    .accentColor(.red)
    

    This will work on iOS and Mac Catalyst. Check out customizable sliders example here

提交回复
热议问题