We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Additionally, you want to draw things on element in animation.
You can download a sample file from SVGA-Samples to try.
// Setup a SVGAPlayer by yourself. SVGAParser *parser = [[SVGAParser alloc] init]; [parser parseWithURL:[NSURL URLWithString:@"https://github.com/yyued/SVGA-Samples/blob/master/posche.svga?raw=true"] completionBlock:^(SVGAVideoEntity * _Nullable videoItem) { } failureBlock:nil];
[...aPlayer setDrawingBlock:^(CALayer *contentLayer, NSInteger frameIndex) { // do things by yourself } forKey:@"banner"];
The imageKey is the name of png file, ask your designer tell you the file name.
imageKey
For example, the layer png image file name is xxx.png, imageKey is xxx. File name should always use English name, do not use Chinese or Japanese etc.
xxx.png
xxx