Closed RayFor24 closed 11 months ago
As in https://github.com/airbnb/lottie-ios/issues/2243, this file is actually a JSON file with a ".lottie" file extension, not a "dotLottie" file. Just rename the file from ip_coffee.lottie
to ip_coffee.json
.
The dotlottie file above is from my https://lottiefiles.com Downloaded from the website.
How should I present. lottie format files in a project
I cannot display when loading in the following way,Please give me an example, thank you
DotLottieFile.named("ip_coffee") { result in switch result { case .success(let dotLottieFile): self.animateView.loadAnimation(from: dotLottieFile) self.animateView.play() case .failure(let error): print(error) } }
Please give me an example, thank you
ip_coffee.lottie.zip
Which Version of Lottie are you using?
Lottie 4.3.3
Expected Behavior
Actual Behavior
Animation JSON