alexiscreuzot / SwiftyGif

High performance GIF engine
MIT License
2.02k stars 212 forks source link

Gif Not Animating when created using storyboard #22

Closed Jerland2 closed 7 years ago

Jerland2 commented 7 years ago

First I would like to say that everything is working as intended without storyboards, however when I tried to create an image view via storyboards the gif would just display as a still image using the following:

let gifManager = SwiftyGifManager(memoryLimit:20)
let gif = UIImage(gifName: "MyImage.gif")
self.myImageView.setGifImage(gif, manager: gifManager) 

Using Xcode 8.2.1 Swift 3

Edit: I would also for completeness like to add that i tried the following as well self.myImageView.setGifImage(gif, manager: gifManager, loopCount:-1)

As I have said I have gotten my project to work without storyboards so I would just like to make sure this problem is known so that it can be fixed for others.

alexiscreuzot commented 7 years ago

Could you provide an example of a gif which displays this issue?

alexiscreuzot commented 7 years ago

Current sample works with a storyboard, so I'm not sure where to go from here. Could you provide the gif causing the issue?