Pinch Gesture information
@abstract Initializes a pinch gesture.
- (nonnull instancetype)initWithFirstTouch:(nonnull SDLTouch *)firstTouch
secondTouch:(nonnull SDLTouch *)secondTouch;
init(firstTouch: SDLTouch, secondTouch: SDLTouch)
First touch of the gesture
Second touch of the gesture
SDLPinchGesture Instance of SDLPinchGesture.
@abstract First touch of a pinch gesture.
@property (nonatomic, strong) SDLTouch *_Nonnull firstTouch;
var firstTouch: SDLTouch { get set }
@abstract Second touch of a pinch gesture.
@property (nonatomic, strong) SDLTouch *_Nonnull secondTouch;
var secondTouch: SDLTouch { get set }
@abstract Distance between first and second touches.
@property (nonatomic, readonly) CGFloat distance;
var distance: CGFloat { get }
@abstract Center point between first and second touches.
@property (nonatomic, readonly) CGPoint center;
var center: CGPoint { get }
@abstract Returns whether or not the pinch gesture is valid. This is true if both touches are non null.
@property (nonatomic, readonly) BOOL isValid;
var isValid: Bool { get }