Usuń wszystko, dodaj tapgestureureCognizer Swift

subview.gestureRecognizers?.forEach(subview.removeGestureRecognizer)
Naughty Narwhal