PSPDFInitialStartingPointGesture

Objective-C

@protocol PSPDFInitialStartingPointGesture

Swift

protocol InitialStartingPointGesture

Protocol for gesture recognizers to indicate that they remember the starting point of the first touch event they receive.

  • Helper for getting the actual initial starting point of the gesture.

    Can be used instead of locationInView: when in the UIGestureRecognizerStateBegan state, to get the location of the first touch the gesture received, instead of the location where the gesture has been detected as started.

    Note

    If that point hasn’t been determined yet, falls back to the current location.

    Declaration

    Objective-C

    - (CGPoint)initialOrCurrentLocationInView:(nullable UIView *)view;

    Swift

    func initialOrCurrentLocation(in view: UIView?) -> CGPoint