mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix pip close animation
This commit is contained in:
parent
93d8595fa3
commit
71c5d02479
@ -2993,9 +2993,11 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode {
|
|||||||
self.activePictureInPictureController = nil
|
self.activePictureInPictureController = nil
|
||||||
self.activePictureInPictureNavigationController = nil
|
self.activePictureInPictureNavigationController = nil
|
||||||
|
|
||||||
|
let previousPresentationArguments = activePictureInPictureController.presentationArguments
|
||||||
activePictureInPictureController.presentationArguments = nil
|
activePictureInPictureController.presentationArguments = nil
|
||||||
activePictureInPictureNavigationController.currentWindow?.present(activePictureInPictureController, on: .root, blockInteraction: false, completion: {
|
activePictureInPictureNavigationController.currentWindow?.present(activePictureInPictureController, on: .root, blockInteraction: false, completion: {
|
||||||
})
|
})
|
||||||
|
activePictureInPictureController.presentationArguments = previousPresentationArguments
|
||||||
|
|
||||||
activePictureInPictureController.view.alpha = 1.0
|
activePictureInPictureController.view.alpha = 1.0
|
||||||
activePictureInPictureController.view.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.35, completion: { _ in
|
activePictureInPictureController.view.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.35, completion: { _ in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user