Swift: how to disable user interaction while touch action is being carried out?
In Swift 3.0 is:
self.view.isUserInteractionEnabled = false
To disable user interaction app-wide, use:
UIApplication.shared.beginIgnoringInteractionEvents()
UIApplication.shared.endIgnoringInteractionEvents()
(as of Swift 5 this is deprecated)
Try to get the view from the touch object and then dissable the user interaction on it.
touch.view.isUserInteractionEnabled = false