Skip to content

Commit 1542c13

Browse files
author
Alan Gonzalez
committed
Fixed View Size at start of zoom transition
View would have the wrong height at the begining of the transition then it would snap to the correct height. This fixed it for me.
1 parent 2d3c613 commit 1542c13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Examples/TransitionFun/TransitionFun/MEZoomAnimationController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
7474
UIView *containerView = [transitionContext containerView];
7575

7676
UIView *topView = topViewController.view;
77+
topView.bounds = [UIScreen mainScreen].bounds;
7778

7879
underLeftViewController.view.layer.transform = CATransform3DIdentity;
7980

0 commit comments

Comments
 (0)