Skip to content

Commit 0e46629

Browse files
Formatting fixes
1 parent 743f4a5 commit 0e46629

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

AnimationControllers/CENatGeoAnimationController.m

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,13 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
5353
}];
5454

5555
} completion:^(BOOL finished) {
56-
// Bring the from view back to the front and re-disable the user
57-
// interaction of the to view since the dismissal has been cancelled
58-
if ([transitionContext transitionWasCancelled])
59-
{
60-
[transitionContext.containerView bringSubviewToFront:
61-
fromViewController.view];
62-
toViewController.view.userInteractionEnabled = NO;
63-
}
56+
// Bring the from view back to the front and re-disable the user
57+
// interaction of the to view since the dismissal has been cancelled
58+
if ([transitionContext transitionWasCancelled])
59+
{
60+
[transitionContext.containerView bringSubviewToFront:fromViewController.view];
61+
toViewController.view.userInteractionEnabled = NO;
62+
}
6463

6564
fromViewController.view.layer.transform = CATransform3DIdentity;
6665
toViewController.view.layer.transform = CATransform3DIdentity;
@@ -102,14 +101,13 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
102101
}];
103102

104103
} completion:^(BOOL finished) {
105-
// Bring the from view back to the front and re-enable its user
106-
// interaction since the presentation has been cancelled
107-
if ([transitionContext transitionWasCancelled])
108-
{
109-
[transitionContext.containerView bringSubviewToFront:
110-
fromViewController.view];
111-
fromViewController.view.userInteractionEnabled = YES;
112-
}
104+
// Bring the from view back to the front and re-enable its user
105+
// interaction since the presentation has been cancelled
106+
if ([transitionContext transitionWasCancelled])
107+
{
108+
[transitionContext.containerView bringSubviewToFront:fromViewController.view];
109+
fromViewController.view.userInteractionEnabled = YES;
110+
}
113111

114112
fromViewController.view.layer.transform = CATransform3DIdentity;
115113
toViewController.view.layer.transform = CATransform3DIdentity;

0 commit comments

Comments
 (0)