title: Why is this Lottie JSON animation not showing in the UIView upon building?
body: <p>This is my <strong>UIViewController</strong>:</p>
  <pre><code> import UIKit
   import Lottie
  
   class ViewController: UIViewController {
      
    override func viewDidLoad() {
        super.viewDidLoad() {
        let rocketAnimationView = AnimationView()
        //Set animation
        let rocketAnimation = Animation.named(&quot;my-json-rocket-animation&quot;)
        rocketAnimationView.animation = rocketAnimation
        rocketAnimationView.play()
  }
  </code></pre>
  <p>When I build, the animation does not show--the view just remains blank. I have tried implementing the following in <code>viewDidLoad()</code>, which seems to work, but my animation does not scale to my entire view:</p>
  <pre><code>    let animation = Animation.named(&quot;my-json-rocket-animation&quot;)
  
      animationView.animation = animation
      animationView.contentMode = .scaleAspectFit
      view.addSubview(animationView)
  
      animationView.backgroundBehavior = .pauseAndRestore
  
  
      animationView.translatesAutoresizingMaskIntoConstraints = false
      animationView.topAnchor.constraint(equalTo: view.layoutMarginsGuide.topAnchor).isActive = true
      animationView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
  
      animationView.bottomAnchor.constraint(equalTo: view.layoutMarginsGuide.bottomAnchor).isActive = true
      animationView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true
      animationView.setContentCompressionResistancePriority(.fittingSizeLevel, for: .horizontal)
  </code></pre>
  <p>I expected my animation to display in the view, but my screen remains blank. Do I need to create a new UIView and connect it with an IBOutlet, of class type AnimationView, and then somehow set the animation? I know this was possible by simply writing <code>animationView.setAnimation(named: &quot;my-json-rocket-animation&quot;)</code> prior to version 3.1.2, but I'm not sure if it is still possible.</p>