SWIFT 5
The Problem can be solve using delegate method of gesturerecognizer as below
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
if touch.view?.isKind(of: UISlider.self) ?? false {
return false
} else {
return true
}
}