title: Problems loading animations in Lottie
body: <p>I am trying to use Lottie in my Xcode project. I encountered some problems from the start. I've looked on youtube and here for solutions but it would not fix it. I can't manage to start the animation, not even making it visible...</p>
  
  <p>I installed cocoa pods, added the Lottie library, downloaded a json file to play it. I've created an UIImageView which I set to AnimationView class</p>
  
  <pre><code>    @IBOutlet weak var animationView: AnimationView!
  
      let filename = "bb8"
  
   func startAnimation() {
  
          let animation = Animation.named(filename)
          animationView.animation = animation
          animationView.contentMode = .scaleAspectFit
          animationView.play()
      }
  </code></pre>
  
  <p>I also tried a different approach but it does not work </p>
  
  <pre class="lang-swift prettyprint-override"><code>        let path = Bundle.main.path(forResource: "bb8",
                                      ofType: "json") ?? ""
          animationView.animation = Animation.filepath(path)
          animationView.contentMode = .scaleAspectFit
          animationView.play()
  </code></pre>
  
  <p>I expect for my AnimationView to show something other than what I see on storyboards.</p>