mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
@@ -32,7 +32,11 @@ public final class AnimationNode: ASDisplayNode {
|
||||
|
||||
super.init()
|
||||
|
||||
self.setViewBlock({
|
||||
self.setViewBlock({ [weak self] in
|
||||
guard let self else {
|
||||
return UIView()
|
||||
}
|
||||
|
||||
var animation: Animation?
|
||||
if let animationName {
|
||||
if let url = getAppBundle().url(forResource: animationName, withExtension: "json"), let maybeAnimation = Animation.filepath(url.path) {
|
||||
|
||||
Reference in New Issue
Block a user