Any idea if there is a way to get the length of a swipe gesture or the touches so that i can calculate the distance?
func swipeAction(gesture: UIPanGestureRecognizer) { let transition = sqrt(pow(gesture.translation(in: view).x, 2) + pow(gesture.translation(in: view).y, 2)) }