SwiftUI - The animation is cropped by the frame #2320
-
lottieanimation.movI have a bunch of views in a horizontal
Is there a way to set a separate frame for the animation? I've also had to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You could try setting I'm not sure off the top of my head if LottieView properly supports |
Beta Was this translation helpful? Give feedback.
-
Hi @calda ! Thanks for your response :)
Another quirk I noticed with Hopefully this post helps anyone who faces a similar issue. |
Beta Was this translation helpful? Give feedback.
You could try setting
maskAnimationToBounds = false
on the underlyingLottieAnimationView
with aconfigure
closure. You'll also need to make sure none of the SwiftUI superviews are clipping the Lottie view.I'm not sure off the top of my head if LottieView properly supports
maskAnimationToBounds = false
. If you test that and find that it doesn't work, even in a sample project that only renders a singleLottieView
, please file an issue.