I have a swipe gesture recogniser in my app, but how can I call a function every time the swipe ends (i.e. call when the user finish swiping and lift up his/her finger)? Thanks.
Check the gesture state like this:
if gesture.state == UIGestureRecognizerState.Ended { //code }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With