Skip to content

Commit aaa6a27

Browse files
committed
Fixes ECSlidingViewController#220. Zoom transition removes under view
1 parent eed31e1 commit aaa6a27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Examples/TransitionFun/TransitionFun/MEZoomAnimationController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
8989
[self topViewAnchorRightEndState:topView anchoredFrame:[transitionContext finalFrameForViewController:topViewController]];
9090
} completion:^(BOOL finished) {
9191
if ([transitionContext transitionWasCancelled]) {
92-
[self underLeftViewStartingState:underLeftViewController.view containerFrame:containerView.bounds];
92+
underLeftViewController.view.frame = [transitionContext initialFrameForViewController:underLeftViewController];
93+
underLeftViewController.view.alpha = 1;
9394
[self topViewStartingState:topView containerFrame:containerView.bounds];
9495
}
9596

0 commit comments

Comments
 (0)