实现代码
pod 'SVGAPlayer'
SVGAPlayer *player = [[SVGAPlayer alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, SafeAreaTopHeight + 44 * rectScale())];
[self addSubview:player];
SVGAParser *parser = [[SVGAParser alloc] init];
player.loops = 1;
player.clearsAfterStop = NO;
NSString *path = [NSString stringWithFormat:@"%@/%@/winter.svga",kSkinCachePath,[TPUserDefault instance].skinPath];
NSData *data = [NSData dataWithContentsOfFile:path];
[parser parseWithData:data cacheKey:nil completionBlock:^(SVGAVideoEntity * _Nonnull videoItem) {
player.videoItem = videoItem;
[player startAnimation];
} failureBlock:^(NSError * _Nonnull error) {
}];