NewsBlur/clients/ios/Other Sources/SloppySwiper/SloppySwiper.h

22 lines
709 B
C
Raw Normal View History

//
// SloppySwiper.h
//
// Created by Arkadiusz Holko http://holko.pl on 29-05-14.
//
#import <Foundation/Foundation.h>
/**
* `SloppySwiper` is a class conforming to `UINavigationControllerDelegate` protocol that allows pan back gesture to be started from anywhere on the screen (not only from the left edge).
*/
@interface SloppySwiper : NSObject <UINavigationControllerDelegate>
/// Gesture recognizer used to recognize swiping to the right.
@property (weak, readonly, nonatomic) UIPanGestureRecognizer *panRecognizer;
/// Designated initializer if the class isn't used from the Interface Builder.
- (instancetype)initWithNavigationController:(UINavigationController *)navigationController;
@end