What I want to get is a UISlider which lets the user not only slide when he starts on its thumbRect, but also when he taps elsewhere. When the user
UISlider
thumbRect
My solution is quite simple:
class CustomSlider: UISlider { override func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool { let newValue = self.setValue(newValue, animated: false) super.sendActions(for: UIControlEvents.valueChanged) return true }}