title: How to show gif into UIImageView in Swift?
body: <p>I want use a gif in UIImageView, but I can't.
  My code is:</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
  
      NSURL *url = [[NSBundle mainBundle] URLForResource:@"test" withExtension:@"gif"];
      UIImage *testImage = [UIImage animatedImageWithAnimatedGIFData:[NSData dataWithContentsOfURL:url]];
      self.dataImageView.animationImages = testImage.images;
      self.dataImageView.animationDuration = testImage.duration;
      self.dataImageView.animationRepeatCount = 1;
      self.dataImageView.image = testImage.images.lastObject;
      [self.dataImageView startAnimating];
  }
  </code></pre>
  
  <p>Swift:</p>
  
  <pre><code>var url : NSURL = NSBundle.mainBundle().URLForResource("MAES", withExtension: "gif")
  </code></pre>
  
  <p>In objective C I had animatedImageWithAnimatedGIFData but in swift I don't know how call this or if not exists..</p>
  
  <p>Thanks!</p>