mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Upgrade greeting sticker to new transition animation
This commit is contained in:
@@ -792,23 +792,7 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
var greetingStickerNode: (ASDisplayNode, ASDisplayNode, ASDisplayNode, (@escaping () -> Void) -> Void)? {
|
||||
if let greetingStickerNode = self.emptyNode?.greetingStickerNode {
|
||||
let historyNode = self.historyNode
|
||||
historyNode.alpha = 0.0
|
||||
return (greetingStickerNode, self, self.historyNode, { completion in
|
||||
historyNode.alpha = 1.0
|
||||
historyNode.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2, completion: { _ in
|
||||
completion()
|
||||
})
|
||||
})
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
private var isInFocus: Bool = false
|
||||
|
||||
func inFocusUpdated(isInFocus: Bool) {
|
||||
self.isInFocus = isInFocus
|
||||
|
||||
|
||||
Reference in New Issue
Block a user