Various improvements

This commit is contained in:
Ali
2023-09-15 21:12:01 +02:00
parent b7e4fb3d57
commit 3453137463
20 changed files with 235 additions and 19 deletions

View File

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