mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
UI improvements
This commit is contained in:
@@ -968,16 +968,20 @@ final class ContextControllerActionsStackNode: ASDisplayNode {
|
||||
var updatedTransition = transition
|
||||
if let tipNode = self.tipNode, tipNode.tip == tip {
|
||||
} else {
|
||||
if let tipNode = self.tipNode {
|
||||
self.tipNode = nil
|
||||
tipNode.removeFromSupernode()
|
||||
}
|
||||
let previousTipNode = self.tipNode
|
||||
updatedTransition = .immediate
|
||||
let tipNode = InnerTextSelectionTipContainerNode(presentationData: presentationData, tip: tip)
|
||||
tipNode.requestDismiss = { [weak self] completion in
|
||||
self?.getController()?.dismiss(completion: completion)
|
||||
}
|
||||
self.tipNode = tipNode
|
||||
|
||||
if let previousTipNode = previousTipNode {
|
||||
previousTipNode.animateTransitionInside(other: tipNode)
|
||||
previousTipNode.removeFromSupernode()
|
||||
|
||||
tipNode.animateContentIn()
|
||||
}
|
||||
}
|
||||
|
||||
if let tipNode = self.tipNode {
|
||||
|
||||
Reference in New Issue
Block a user