mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Initial reactions proof of concept
This commit is contained in:
@@ -36,9 +36,16 @@ public final class ReactionSelectionParentNode: ASDisplayNode {
|
||||
}
|
||||
}
|
||||
|
||||
func dismissReactions() {
|
||||
func selectedReaction() -> ReactionGestureItem? {
|
||||
if let currentNode = self.currentNode {
|
||||
currentNode.animateOut(completion: { [weak currentNode] in
|
||||
return currentNode.selectedReaction()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func dismissReactions(into targetNode: ASImageNode?, hideTarget: Bool) {
|
||||
if let currentNode = self.currentNode {
|
||||
currentNode.animateOut(into: targetNode, hideTarget: hideTarget, completion: { [weak currentNode] in
|
||||
currentNode?.removeFromSupernode()
|
||||
})
|
||||
self.currentNode = nil
|
||||
|
||||
Reference in New Issue
Block a user