I can't set the 'enabled' property with gesture recognizers. I tried creating recognizers both programmatically and by adding an @IBAction
in Xcode
and connecting it by control drag to the code.
I try to use properties like this:
swipeUpOccurred(swipeUp: UISwipeGestureRecognizer).enabled = false
But it is showing error:
Value of type '(UISwipeGestureRecognizer) ->' does not have member 'enabled'