NewsBlur/clients/ios/Other Sources/SloppySwiper/SSWDirectionalPanGestureRecognizer.h
2014-09-17 16:41:48 -07:00

23 lines
616 B
Objective-C
Executable file

//
// SSWDirectionalPanGestureRecognizer.h
//
// Created by Arkadiusz Holko http://holko.pl on 01-06-14.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, SSWPanDirection) {
SSWPanDirectionRight,
SSWPanDirectionDown,
SSWPanDirectionLeft,
SSWPanDirectionUp
};
/**
* `SSWDirectionalPanGestureRecognizer` is a subclass of `UIPanGestureRecognizer`. It adds `direction` property and checks if the pan gesture started in the correct direction; it fails otherwise.
*/
@interface SSWDirectionalPanGestureRecognizer : UIPanGestureRecognizer
@property (nonatomic) SSWPanDirection direction;
@end