<aside> 💡 슬라이더 만들고 커스텀 (세로 + thumb제거 + 확장 + 투명) 가능한지 여부 확인
</aside>
https://codewithchris.com/uislider-tutorial-ios-slider/
UISlider 커스텀과 그 한계 그리고 UIProgressView에 대한 글 https://medium.com/doyeona/customize-uislider-and-uiprogressview-fe5fe73f2dd2
slider.thumbTintColor = UIColor.clear
class SliderView: UISlider {
override func trackRect(forBounds bounds: CGRect) -> CGRect {
var result = super.trackRect(forBounds: bounds)
result.origin.x = 0
result.size.width = bounds.size.width
result.size.height = 10 //added height for desired effect
return result
}
}
https://newbedev.com/vertical-uislider-in-ios-with-autolayout
@IBOutlet weak var mySlider: UISlider! {
didSet {
mySlider.transform = CGAffineTransform(rotationAngle: -CGFloat.pi/2)
} // didSet
}
//viewDidLoad
self.slider.transform = CGAffineTransform(rotationAngle: -CGFloat.pi/2)