How to call this custom function on a swipe event

Printable View