Skip to content

ma125125t/Lottie3ObjcWrapper

Repository files navigation

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.

About

A wrapper for using Lottie3 in Objective-C project

Resources

License

Stars

Watchers

Forks

Packages

No packages published