swift UISlider实现
2020-06-17 本文已影响0人
江河_ios
lazy var layder:UISlider = {
let layder = UISlider.init()
layder.frame = CGRect(x: 20, y: self.textView.maxY, width: self.textView.width, height: 40)
layder.thumbTintColor = UIColor.green
layder.value = 0.5
layder.minimumValue = 0.1
layder.maximumValue = 1
layder.minimumTrackTintColor = UIColor.orange
layder.maximumTrackTintColor = UIColor.yellow
return layder
}()