代码
//因为需要使用oc 版本的,所以这里使用了2.5.3
pod 'lottie-ios', '2.5.3'
#import <Lottie/Lottie.h>
- (LOTAnimationView *)animationView
{
if (!_animationView) {
_animationView = [[LOTAnimationView alloc] init];
//循环播放动画
_animtationView.loopAnimation = YES
}
return _animationView;
}
[self.animationView setAnimationNamed:@"receive_success"]
[self.animationView playWithCompletion:^(BOOL animationFinished) {

}];
资源
json 文件

图片资源
