Skip to content

yusuga/ForceTouchGestureRecognizer

Repository files navigation

ForceTouchGestureRecognizer

ForceTouchGestureRecognizer is tap gesture recognizer of 3D touch.

preview

Usage

ForceTouchGestureRecognizer *forceGesture = [[ForceTouchGestureRecognizer alloc] initWithTarget:self 
                                                                                     action:@selector(forceTouched:)];
[self.tapView addGestureRecognizer:forceGesture];

Installation

Simply add the following to your Podfile if you're using CocoaPods:

pod 'ForceTouchGestureRecognizer'