Skip to content

SwiftUI - The animation is cropped by the frame #2320

Answered by calda
ct-shabnaz asked this question in Q&A
Discussion options

You must be logged in to vote

You could try setting maskAnimationToBounds = false on the underlying LottieAnimationView with a configure 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 single LottieView, please file an issue.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by calda
Comment options

You must be logged in to vote
1 reply
@calda
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants