I have implemented UISlider and I need to adjust track height. I found this but its not working.
self.slider.trackRect(forBounds: CGRect(x: 0, y: 0, width: 100, height: 100))
found this but its not working
Because you're using it wrong. You don't call it. You subclass, and override it.
However, the right approach is to supply new images for the track, with setMinimumTrackImage
and setMaximumTrackImage
.