I have the following code to handle a swipe gesture.
func handleSwipes(sender:UISwipeGestureRecognizer) {
if (sender.direction == .Right) {
print("Swipe Right")
self.performSegueWithIdentifier("eventsModally", sender: self)
}
}
What is the best practise to make this method available in the whole project, instead of implementing it in every ViewController class?
Help is very appreciated.