Skip to content

Commit 71c5d02

Browse files
author
Isaac
committed
Fix pip close animation
1 parent 93d8595 commit 71c5d02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2993,9 +2993,11 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode {
29932993
self.activePictureInPictureController = nil
29942994
self.activePictureInPictureNavigationController = nil
29952995

2996+
let previousPresentationArguments = activePictureInPictureController.presentationArguments
29962997
activePictureInPictureController.presentationArguments = nil
29972998
activePictureInPictureNavigationController.currentWindow?.present(activePictureInPictureController, on: .root, blockInteraction: false, completion: {
29982999
})
3000+
activePictureInPictureController.presentationArguments = previousPresentationArguments
29993001

30003002
activePictureInPictureController.view.alpha = 1.0
30013003
activePictureInPictureController.view.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.35, completion: { _ in

0 commit comments

Comments
 (0)