Fix pip close animation

This commit is contained in:
Isaac 2024-11-05 17:52:21 +01:00
parent 93d8595fa3
commit 71c5d02479

View File

@ -2993,9 +2993,11 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode {
self.activePictureInPictureController = nil
self.activePictureInPictureNavigationController = nil
let previousPresentationArguments = activePictureInPictureController.presentationArguments
activePictureInPictureController.presentationArguments = nil
activePictureInPictureNavigationController.currentWindow?.present(activePictureInPictureController, on: .root, blockInteraction: false, completion: {
})
activePictureInPictureController.presentationArguments = previousPresentationArguments
activePictureInPictureController.view.alpha = 1.0
activePictureInPictureController.view.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.35, completion: { _ in