mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Update settings screen
This commit is contained in:
@@ -715,6 +715,20 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
var greetingStickerNode: (ASDisplayNode, ASDisplayNode, () -> Void)? {
|
||||
if let greetingStickerNode = self.emptyNode?.greetingStickerNode {
|
||||
self.historyNode.itemHeaderNodesAlpha = 0.0
|
||||
return (greetingStickerNode, self, { [weak self] in
|
||||
self?.historyNode.forEachItemHeaderNode { node in
|
||||
node.alpha = 1.0
|
||||
node.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
private var isInFocus: Bool = false
|
||||
|
||||
func inFocusUpdated(isInFocus: Bool) {
|
||||
|
||||
Reference in New Issue
Block a user