In case someone wonders how to do this, here is the answer:
When you declare your class, add UIGestureRecognizerDelegate after the class that it subclasses. Here is how it looks in my case:
class CardViewController: UIViewController, UIGestureRecognizerDelegate
Then you add this function to the body of the UIViewController :
func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool { return true }
And finally, you do this with the UIPanGestureRecognizer :
somePanGestureRecognizer.delegate = self
source share