using swipe gesture recognizer swift code example
Example: using swipe gesture recognizer swift
@IBAction func swipeHandler(_ gestureRecognizer : UISwipeGestureRecognizer) {
if gestureRecognizer.state == .ended {
// Perform action.
}
}