In my project I use the package Lottie-ios , and I need to add a library that uses the package Lottie-spm.
When I run my application it crashes with this error : ” multiple products named ‘Lottie’ in: ‘lottie-ios’, ‘lottie-spm'”
I found that there is a lot of differences in syntax , for example when I want to declare an animation view , with Lottie-ios it is like this :
var animationView : AnimationView!
While with Lottie-spm it is like this :
var animationView : LottieAnimationView!
The question is : Can I use both of packages using an adapter pattern or factory pattern ? Or there is any solution to avoid the problem ?
Or I need to migrate to Lottie-spm and changing all the syntax in the project ?
*For Info :
- Package Lottie-ios used : “https://github.com/airbnb/lottie-ios.git”
- Package Lottie-spm used : “https://github.com/airbnb/lottie-spm.git”




