Fix status bar when dismissing
This commit is contained in:
parent
0687ef4f8e
commit
60efe4f023
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue