Reputation: 947
How do I remove the glow/shadow from this UISlider?
Upvotes: 4
Views: 2577
Reputation: 3274
I do this in the didSet
of the UISlider
(Swift 3):
@IBOutlet weak var slider: UISlider!{
didSet{
slider.setThumbImage(<image when not touched>, for: .normal)
slider.setThumbImage(<image when touched>, for: .highlighted)
}
}
Upvotes: 2
Reputation: 947
It turns out, all I needed to do was set a custom thumb image and the shadow doesn't exist.
Upvotes: 7