Skip to content

Commit

Permalink
Fix pip close animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac committed Nov 5, 2024
1 parent 93d8595 commit 71c5d02
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71c5d02

Please sign in to comment.