Subclass UISliderand in your custom slider class add this method,
func pointInside(_ point: CGPoint, withEvent event: UIEvent?) -> Bool {
var bounds: CGRect = self.bounds
bounds = CGRectInset(bounds, -10, -15)
return CGRectContainsPoint(bounds, point)
}
Then create an object of this subclass when you use the slider.
If you used the slider in interfacebuilder(storyboard), set it as a class in this custom slider class from identity inspector.