mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various UI fixes
This commit is contained in:
@@ -913,8 +913,19 @@ public class GalleryController: ViewController, StandalonePresentableController
|
||||
}
|
||||
}, editMedia: { [weak self] messageId in
|
||||
if let strongSelf = self {
|
||||
strongSelf.dismiss(forceAway: true)
|
||||
strongSelf.actionInteraction?.editMedia(messageId)
|
||||
var snapshots: [UIView] = []
|
||||
if let navigationBar = strongSelf.navigationBar, let snapshotView = navigationBar.view.snapshotContentTree() {
|
||||
snapshotView.frame = navigationBar.frame
|
||||
snapshots.append(snapshotView)
|
||||
}
|
||||
if let snapshotView = strongSelf.galleryNode.footerNode.view.snapshotContentTree() {
|
||||
snapshotView.frame = strongSelf.galleryNode.footerNode.frame
|
||||
snapshots.append(snapshotView)
|
||||
}
|
||||
|
||||
strongSelf.actionInteraction?.editMedia(messageId, snapshots, { [weak self] in
|
||||
self?.dismiss(forceAway: true)
|
||||
})
|
||||
}
|
||||
})
|
||||
self.displayNode = GalleryControllerNode(controllerInteraction: controllerInteraction)
|
||||
|
||||
Reference in New Issue
Block a user