4.1.0
Note
Starting in Lottie 4.0, the Core Animation rendering engine is now enabled by default.
Learn more about this change: Announcing Lottie 4.0 for iOS on the Airbnb Tech Blog
We've added a new way to integrate Lottie into your project using Swift Package Manager. We now provide a separate lottie-spm repo that is much smaller than the main lottie-ios repo (~500kb instead of ~300mb). Learn more about this change here.
Improvements and bug fixes
- Made DotLottieAnimation attributes optional to simplify Manifest file (airbnb/lottie-ios#1844)
- Fix heap buffer overflow in CGColor+RGB extensions (airbnb/lottie-ios#1858)
- Add support for display P3 color space (airbnb/lottie-ios#1857)
- Add some missing utility to CompatibleAnimationView (airbnb/lottie-ios#1881)
- Fix issue where ShapeTransform could incorrectly affect stroke width (airbnb/lottie-ios#1872)
- Fix issue where empty trim item would take precedence over non-empty trim item (airbnb/lottie-ios#1875)
- Fix issue where some top-level shape items would be silently ignored (airbnb/lottie-ios#1874)
- Fix frame setting issue for CompatibleAnimationView (airbnb/lottie-ios#1878)
- Gradient Fill Layer: Support strokes (airbnb/lottie-ios#1818)
- Change veryLargeRect size to fix issue with masks (airbnb/lottie-ios#1884)
- Fix issue where Fill following other Fill would be silently ignored (airbnb/lottie-ios#1888)
- Fix issue where negative
scale.x
values didn't render correctly on iOS 14 (airbnb/lottie-ios#1894) - Fix issue where
LottieAnimationView.currentFrame
would be incorrect after playing animation withLottieLoopMode.playOnce
(airbnb/lottie-ios#1897) - Fix issue where shape items could be applied in incorrect order (airbnb/lottie-ios#1899)
- Fix issue where stroke and fill could be rendered in incorrect order (airbnb/lottie-ios#1903)
- Fix issue where
play(fromProgress: 1, toProgress: 0)
animation would not actually play (airbnb/lottie-ios#1908) - Add support for skew animations (airbnb/lottie-ios#1917)