Since our main app is based on SwiftUI, we are using a wrapper around LottieAnimationView. However, we have also tried using the SwiftUI version of LottieView, and we have attempted the solutions suggested in other issues, including changing the RenderingEngine. Unfortunately, the problem persists.
Thank you for always providing such a great library.
import Lottie
import SwiftUI
struct CustomLottieView: UIViewRepresentable {
var animationFileName: String
let loopMode: LottieLoopMode
Which Version of Lottie are you using?
Lottie 4.4.3
Expected Behavior
https://github.com/airbnb/lottie-ios/assets/144753334/82d2da99-f50f-4b94-84fc-6318334337a4
Actual Behavior
https://github.com/airbnb/lottie-ios/assets/144753334/86281275-b196-4de0-8007-69d7e6d1bfb5
Animation JSON
Lottie Animation Link doubleSpinner.json
Code
Since our main app is based on SwiftUI, we are using a wrapper around
LottieAnimationView
. However, we have also tried using the SwiftUI version ofLottieView
, and we have attempted the solutions suggested in other issues, including changing theRenderingEngine
. Unfortunately, the problem persists.Thank you for always providing such a great library.
import Lottie import SwiftUI
struct CustomLottieView: UIViewRepresentable { var animationFileName: String let loopMode: LottieLoopMode
}
if DEBUG
Preview {
}
endif