mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
24 lines
616 B
C
24 lines
616 B
C
![]() |
//
|
||
|
// 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
|