fixed panning when not interacting.

always use animation for direction
Add missing protocol call
This commit is contained in:
Pfeil, Scott Robert 2018-08-21 14:35:18 -04:00
parent 594292c726
commit 6b2ee27c5d

View File

@ -880,6 +880,14 @@
}
}
- (nullable id <UIViewControllerInteractiveTransitioning>)navigationController:(UINavigationController *)navigationController interactionControllerForAnimationController:(id<UIViewControllerAnimatedTransitioning>)animationController {
if (self.delegate && [self.delegate respondsToSelector:@selector(navigationController:interactionControllerForAnimationController:)]) {
return [self.delegate navigationController:navigationController interactionControllerForAnimationController:animationController];
} else {
return nil;
}
}
- (void)viewController:(UIViewController *)presentingViewController willPresentViewController:(UIViewController *)presentedViewController {
if ([self.delegate respondsToSelector:@selector(viewController:willPresentViewController:)]) {