Animation not working correctly in Xcode

there is an issue that I am experiencing in Lottie and Xcode. When I try and use a custom lottie animation in Xcode the animation doesn’t come out well. When looking at it through LottieFiles the animation is prefect but when I download the LottieFiles and add it to Xcode and play the animation the animation is off. It is a loading indicator that goes in a perfect circle but in Xcode it starts shaking and it doesn’t make a perfect circle. Why is this happening?
Thank you