@@ -53,14 +53,13 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
53
53
}];
54
54
55
55
} 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
+ }
64
63
65
64
fromViewController.view .layer .transform = CATransform3DIdentity;
66
65
toViewController.view .layer .transform = CATransform3DIdentity;
@@ -102,14 +101,13 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
102
101
}];
103
102
104
103
} 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
+ }
113
111
114
112
fromViewController.view .layer .transform = CATransform3DIdentity;
115
113
toViewController.view .layer .transform = CATransform3DIdentity;
0 commit comments