I'm using Lottie 2.1.3, XCode 9 and IOS 11.
When i'm trying to get animation like this
var loadingView = LOTAnimationView(name: "preloader")
I'm taking this error: +[LOTComposition animationNamed:inBundle:]: Animation Not Found
But getting the animation like below works fine
var loadingView = LOTAnimationView(filePath: "/Users/username/Git/iOS/Swift/LottieTest/LottieTest/preloader.json")
Here is the preloader.json i'm using https://www.lottiefiles.com/storage/datafiles/Hhw0wgYmETDTkxW/data.json
What am i doing wrong here?