finish()
Notifies the system that user interactions signaled the completion of the transition.
Declaration
func finish()Discussion
This is a convenience method that calls through to the finishInteractiveTransition() method of the context object.
While tracking user interactions, your gesture recognizer or event-handling code should call this methods when the interactions suggest that the transition is now complete. For example, if the user swipes a finger, and the touch events indicate that the swipe distance crossed the threshold needed to complete the gesture, call this method when the corresponding touch events end to let the system know that it can now complete the transition.