Initial reactions proof of concept

This commit is contained in:
Peter
2019-08-16 23:16:14 +03:00
parent ae165ed4a5
commit 9bad9b86ab
28 changed files with 623 additions and 84 deletions

View File

@@ -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