[Solved] set UIslider thumb image in swift
If you want to clip the top part of the thumbImage, you should use: public func thumbRectForBounds(bounds: CGRect, trackRect rect: CGRect, value: Float) -> CGRect So add this to your code: durationSlider.thumbRectForBounds(…) And set the CGRect of the thumbRect to have the value of durationSlider.frame.origin.y as its own origin.y. Here’s another temporary solution, I’ll get … Read more