File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
MVVMReactiveCocoa/View/BaseClass Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 12
12
#import " MRCDoubleTitleView.h"
13
13
#import " MRCLoadingTitleView.h"
14
14
15
- @interface MRCViewController ()
15
+ @interface MRCViewController () <UIGestureRecognizerDelegate>
16
16
17
17
@property (nonatomic , strong , readwrite ) MRCViewModel *viewModel;
18
18
@property (nonatomic , strong , readwrite ) UIPercentDrivenInteractiveTransition *interactivePopTransition;
@@ -52,6 +52,7 @@ - (void)viewDidLoad {
52
52
if (self.navigationController != nil && self != self.navigationController .viewControllers .firstObject ) {
53
53
UIPanGestureRecognizer *popRecognizer = [[UIPanGestureRecognizer alloc ] initWithTarget: self action: @selector (handlePopRecognizer: )];
54
54
[self .view addGestureRecognizer: popRecognizer];
55
+ popRecognizer.delegate = self;
55
56
}
56
57
}
57
58
@@ -165,4 +166,10 @@ - (void)handlePopRecognizer:(UIPanGestureRecognizer *)recognizer {
165
166
}
166
167
}
167
168
169
+ #pragma mark - UIGestureRecognizerDelegate
170
+
171
+ - (BOOL )gestureRecognizerShouldBegin : (UIPanGestureRecognizer *)recognizer {
172
+ return [recognizer velocityInView: self .view].x > 0 ;
173
+ }
174
+
168
175
@end
You can’t perform that action at this time.
0 commit comments