Fix status bar when dismissing

This commit is contained in:
Jed Fox 2022-11-15 13:13:22 -05:00
parent 0687ef4f8e
commit 60efe4f023
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,12 @@ extension MediaHostToMediaPreviewViewControllerAnimatedTransitioning {
return animator
}
if let toVC = transitionContext.viewController(forKey: .to) {
animator.addCompletion { _ in
toVC.setNeedsStatusBarAppearanceUpdate()
}
}
// update close button
UIView.animate(withDuration: 0.33, delay: 0, options: [.curveEaseInOut]) {
fromVC.closeButtonBackground.alpha = 0