Check out example codes for "remove all add TapGestureRecognizer swift". It will help you in understanding the concepts better.

Code Example 1

subview.gestureRecognizers?.forEach(subview.removeGestureRecognizer)

Learn ReactJs, React Native from akashmittal.com