title: Unable to show a *.gif file in a UIImageView in swift
body: <p>I have a *.gif file that I want to show in a <code>UIImageView</code>. I have tried the library <a href="https://github.com/Flipboard/FLAnimatedImage" rel="nofollow noreferrer">FLAnimatedImage</a>, code below. Result is just a static image.</p>
  
  <pre><code>class LoginVC: UIViewController, UITextFieldDelegate {
  
      @IBOutlet weak var img_popup: FLAnimatedImageView!
  
      var img_popupraw: FLAnimatedImage = FLAnimatedImage(animatedGIFData: NSData(contentsOfFile: "ShitTalk_LoadingAnimation.gif"))
  
      override func viewDidLoad() {
          img_popup.animatedImage = img_popupraw
      }
  }
  </code></pre>
  
  <p>Open to any alternative ways to show animating gif directly from a gif file. I am using Swift.</p>