From c1cae61a81458a26db9d1c64b402ccc23395d576 Mon Sep 17 00:00:00 2001 From: Yauhen Hatsukou Date: Fri, 20 Nov 2015 11:37:32 +0300 Subject: [PATCH] Fix swipe to back transition --- Pod/Classes/RMPScrollingMenuBarControllerAnimator.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Pod/Classes/RMPScrollingMenuBarControllerAnimator.m b/Pod/Classes/RMPScrollingMenuBarControllerAnimator.m index b01ac0b..6a0da03 100644 --- a/Pod/Classes/RMPScrollingMenuBarControllerAnimator.m +++ b/Pod/Classes/RMPScrollingMenuBarControllerAnimator.m @@ -113,6 +113,9 @@ - (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag // Remove animations [fromViewController.view.layer removeAllAnimations]; [toViewController.view.layer removeAllAnimations]; + + _transitionContext.containerView.layer.beginTime = 0.0; + _transitionContext.containerView.layer.timeOffset = 0.0; }