LottieFiles / dotlottie-ios

.lottie player for iOS
MIT License
35 stars 4 forks source link

App Crash after the recent package resolve #13

Open Nookaraju opened 5 months ago

Nookaraju commented 5 months ago
Screenshot 2024-02-09 at 1 17 33 AM
samuelOsborne commented 5 months ago

hey @Nookaraju it might be due to the layer effect being not supported as per the console logs, could you share the animation with me please?

samuelOsborne commented 5 months ago

@Nookaraju Could you show your view code please, how you're displaying the animation

also does it crash on every launch or occasionally?

Nookaraju commented 4 months ago

@samuelOsborne

var simpleVM = DotLottieAnimation(fileName: "Infor_END TAG_NoGrid", config:AnimationConfig(autoplay: true, loop: true)) let loaderView: DotLottieAnimationView = simpleVM.view() loaderView.translatesAutoresizingMaskIntoConstraints = false animateView.addSubview(loaderView) MGUtil.anchorSubView(loaderView, toOccupySuperView: animateView, withInset: UIEdgeInsets.zero)

Every launch, it is crashing.

samuelOsborne commented 4 months ago

hi @Nookaraju I used your way of instantiating the player and its running, except that I didnt use

MGUtil.anchorSubView(loaderView, toOccupySuperView: animateView, withInset: UIEdgeInsets.zero)

and used instead

        loaderView.frame = view.bounds

Would you be able to share your animation? If possible a full reproducible snippet would be great too please