Note: Lottie 3.4.0 added a new rendering engine powered by Core Animation. Please try it out and let us know if you encounter any issues! It will be enabled by default in a future version of Lottie. More information is available in this announcement: #1627
New features
- Added support for Repeater shape items to Core Animation rendering engine (#1688)
- Added support for inverted matte layers to Core Animation rendering engine (#1712)
- Added
fillMode
support toGradientFill
shape items (#1702) - Added support for non-integer animation widths/heights (#1694)
Bug fixes
- Fixed CocoaPods installation issue by removing
.swift-version
file (#1674) - Changeed default behavior when bundle image is not found from
assertionFailure
towarn
(#1680) - Fixed issue where
isAnimationPlaying
would be incorrect when usingLottieLoopMode.playOnce
(#1682) - Fixed regression where
InvertedMatteLayer
s wouldn't animate when using Main Thread rendering engine (#1684) - Core Animation rendering engine now respects
LayerModel.hidden
andShapeItem.hidden
flags (#1689) - Fixed where strokes would not appear under certain conditions (#1691)
- Core Animation rendering engine now supports animating multiple properties of shape bezier paths (#1690)
- Core Animation rendering engine now correctly Ignores masks with
MaskMode.none
(#1693) - Fixed issue where Core Animation engine would render negative stroke offsets incorrectly (#1698)
- Improved shape fill behavior for overlapping shapes when using Core Animation rendering engine (#1699)
- Fixed issue that caused text layer descenders to be cut off when using some fonts #1697
RenderingEngineOption.automatic
now falls back to the Main Thread rendering engine when attempting to applyTrim
toFill
(unsupported by Core Animation rendering engine) (#1706)- Fixed bug in
AnimationView.play(fromFrame:toFrame:)
withfromFrame: nil
(#1707) - Fixed issue where some spatial keyframes would be ignored by Core Animation rendering engine (#1714)
- Fixed issue where certain
AnimationKeypath
s were not applied correctly by Core Animation rendering engine (#1715) - Fixed issue where stroke with dash pattern could unexpectedly be rendered as pills instead of circles (#1718)
- Fixed issue where large
GradientFill
/GradientStroke
would be cut off when using Core Animation rendering engine (#1721)