mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[WIP] Video message send context menu
This commit is contained in:
@@ -511,6 +511,9 @@ final class MediaPickerSelectedListNode: ASDisplayNode, ASScrollViewDelegate, AS
|
||||
private let persistentItems: Bool
|
||||
private let isExternalPreview: Bool
|
||||
var globalClippingRect: CGRect?
|
||||
var layoutType: ChatSendMessageContextScreenMediaPreviewLayoutType {
|
||||
return .message
|
||||
}
|
||||
|
||||
fileprivate var wallpaperBackgroundNode: WallpaperBackgroundNode?
|
||||
private let scrollNode: ASScrollNode
|
||||
@@ -656,7 +659,7 @@ final class MediaPickerSelectedListNode: ASDisplayNode, ASScrollViewDelegate, AS
|
||||
}
|
||||
|
||||
func animateOut(transition: ContainedViewLayoutTransition, completion: @escaping () -> Void = {}) {
|
||||
if let wallpaperBackgroundNode = self.wallpaperBackgroundNode{
|
||||
if let wallpaperBackgroundNode = self.wallpaperBackgroundNode {
|
||||
wallpaperBackgroundNode.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.25, removeOnCompletion: false, completion: { [weak self] _ in
|
||||
completion()
|
||||
|
||||
@@ -714,6 +717,10 @@ final class MediaPickerSelectedListNode: ASDisplayNode, ASScrollViewDelegate, AS
|
||||
}
|
||||
}
|
||||
|
||||
func animateOutOnSend(transition: Transition) {
|
||||
transition.setAlpha(view: self.view, alpha: 0.0)
|
||||
}
|
||||
|
||||
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user