airbnb / lottie-ios

An iOS library to natively render After Effects vector animations
http://airbnb.io/lottie/
Apache License 2.0
25.7k stars 3.74k forks source link

iOS render error with green line #2419

Closed wiesener closed 3 months ago

wiesener commented 4 months ago

Which Version of Lottie are you using?

Lottie 3.5.0

Expected Behavior

No frame around animationView

Actual Behavior

frame

Animation JSON

Sorry, this is not possible.

The call in swiftUI is the following:

    @State var animationView: LottieAnimationView = {
            let animationView = LottieAnimationView()
            animationView.contentMode = .scaleAspectFit
            return animationView
    }()

And then later:

if colorScheme == .dark {
  animationView.animation = Animation.named("animation_dark")
} else {
  animationView.animation = Animation.named("animation_light")
}
animationView.play()

In dark mode this lines are not visible and in the web preview neither.

wiesener commented 3 months ago

This issue can be closed it gone since we updated to 4.4.3.