alexiscreuzot / SwiftyGif

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

handles non GIF image cases #112

Closed billypchan closed 5 years ago

billypchan commented 5 years ago

added methods to handle the case that the images are not GIF

For UIImage :

convenience init?(imageData:Data, levelOfIntegrity: GifLevelOfIntegrity = .default) throws
convenience init?(imageName: String, levelOfIntegrity: GifLevelOfIntegrity = .default) throws

For UIImageView:

func setImage(_ image: UIImage, manager: SwiftyGifManager = .defaultManager, loopCount: Int = -1)

Create snapshot tests to verify the functionalities of non-animated GIF and normal images.

alexiscreuzot commented 5 years ago

Thanks, great work!