tfmart / LottieUI

LottieUI is a SwiftUI wrapper for Lottie Animations for iOS
MIT License
93 stars 2 forks source link

Progress/Framerate observer Lottie's new Core Animation engine #10

Open tfmart opened 1 year ago

tfmart commented 1 year ago

As of Lottie 4.0, the current solution we have for observing animations with CVDisplayLink and CADisplayLink have stopped working when rendering animations with their new Core Animation engine.

For now, we can use the legacy Main Thread engine to use the framerate/progress observers, but we'll have to sort it out what's causing the display link to break on the newer engine

If anyone has an possible solution in mind, feel free to discuss it below. You're also very welcome to contribute with a pull request!

tfmart commented 1 year ago

I've also opened a discussion thread on Lottie's official repo about this issue

https://github.com/airbnb/lottie-ios/discussions/1940