Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.46 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.46 KB

Lottie3ObjcWrapper

CI Status Version License Platform

Example

Lottie3 is rewritten in Swift,so it's not possible to directly use Lottie3 and its new feature in Objective-C project.

This lib is to wrap native Lottie3 class with an @objc keyword,so we can use indirectly.

To run the example project, clone the repo, and run pod install from the Example directory first.

@import Lottie3ObjcWrapper;

LottieAnimationView *loader = [[LottieAnimationView alloc] initWithFrame:CGRectMake(0, 100, 300, 300)];
loader.loop = false;
[loader loadAnimationWithName:@"demo"];
[loader playWithCompletion:nil];
[self.view addSubview:loader];

Requirements

Installation

Lottie3ObjcWrapper is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Lottie3ObjcWrapper'

Author

FFFang, [email protected]

License

Lottie3ObjcWrapper is available under the MIT license. See the LICENSE file for more info.