I have a uiview with multipe buttons and images on it. I drag that card kind of like a tinder interface.
I want to be able stop the user dragging the card at some points and allow them at others.
I tried disabling it but the way I was doing it disabled all user interaction with the whole view stopping the swiping but also stopping users hitting the button which I don't want to do (I only want to stop them swiping).
This is how I initiate the swipe:
let gestureBack = UIPanGestureRecognizer(target: self, action: Selector("wasDraggedBack:"))
backview.addGestureRecognizer(gestureBack)
This is how I incorrectly attempted to stop the swiping:
self.backview.userInteractionEnabled = true
How can I just stop the view from swiping without it affecting all the other buttons ect inside the view.
Thanks