Improve stickers

This commit is contained in:
Ali
2020-04-17 22:22:59 +04:00
parent e78a18a384
commit 17d3a1eb53
2 changed files with 15 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ final class StickerPaneSearchStickerItemNode: GridItemNode {
let animationNode = AnimatedStickerNode()
animationNode.view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(self.imageNodeTap(_:))))
self.animationNode = animationNode
self.addSubnode(animationNode)
self.insertSubnode(animationNode, belowSubnode: self.textNode)
}
let dimensions = stickerItem.file.dimensions ?? PixelDimensions(width: 512, height: 512)
let fittedDimensions = dimensions.cgSize.aspectFitted(CGSize(width: 160.0, height: 160.0))