Lottie improvements

This commit is contained in:
Ali
2022-06-07 13:31:47 +04:00
parent 73d4647439
commit 309356b8c6
9 changed files with 76 additions and 9 deletions

View File

@@ -1082,7 +1082,7 @@ public final class StandaloneReactionAnimation: ASDisplayNode {
self.addSubnode(additionalAnimationNode)
if !isLarge, !avatarPeers.isEmpty, let url = getAppBundle().url(forResource: "effectavatar", withExtension: "json"), let composition = Animation.filepath(url.path) {
let view = AnimationView(animation: composition)
let view = AnimationView(animation: composition, configuration: LottieConfiguration(renderingEngine: .mainThread, decodingStrategy: .codable))
view.animationSpeed = 1.0
view.backgroundColor = nil
view.isOpaque = false