UISipeGuestureRecognizer not. Calling function

let play = UISwipeGestureRecognizer(target: self, action: #selector(upSwipe))
        play.direction = .up
        view.addGestureRecognizer(play)

I am working on a WWDC submission and I am trying to make a swipe guesture to get working, the function is an `@objc func` and I have tryed many debugging methods. This is in playgrounds.

You should show the upSwipe func.


Have you checked that the function is even called ?


May have a look here for an example in a similar situation:

https://stackoverflow.com/questions/43151145/uigesturerecognizer-in-swift-playgrounds

UISipeGuestureRecognizer not. Calling function
 
 
Q