Fixes a glitch when dismissing a GIF in the media attachment viewer (#6475) (#6476)

* Fixed a glitch in media viewer when dismissing a GIF: the WebView which shows the animation would show in the background while the transition interaction occurred

* adding the changelog entry

Signed-off-by: Milton Moura <miltonmoura@gmail.com>
This commit is contained in:
Milton Moura
2022-08-05 10:01:31 +00:00
committed by GitHub
parent 63da4b7bdf
commit e39982a555
4 changed files with 33 additions and 2 deletions
@@ -111,7 +111,9 @@
- (void)startInteractiveTransition:(id <UIViewControllerContextTransitioning>)transitionContext
{
self.transitionContext = transitionContext;
[self.destinationViewController prepareSubviewsForTransition:YES];
UIViewController *fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey];
UIImageView *destinationImageView = [self.destinationViewController finalImageView];
destinationImageView.hidden = YES;
@@ -158,6 +160,8 @@
[self.transitionContext cancelInteractiveTransition];
[self.transitionContext completeTransition:NO];
[self.destinationViewController prepareSubviewsForTransition:NO];
}
}];
}