I need to navigate to another view controller when swipe (left, right, up, down). And the other view controller should change according to the user finger movement, not to change view controller with in given time. I used
UIView.animateWithDuration(0.9, animations: { () -> Void in
but it used a duration, so does not change according to user movement.