alexiscreuzot / SwiftyGif

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

gif with 2 frames doesn't update #24

Closed kawolum closed 7 years ago

kawolum commented 7 years ago

My gifs are working correctly except for the one with 2 frames.

let gifmanager = SwiftyGifManager(memoryLimit:20) let gif4 = UIImage(gifName: "4") self.imageView.setGifImage(gif4, manager: gifmanager)

using Xcode 8.2.1 Swift 3

kawolum commented 7 years ago

let gifmanager = SwiftyGifManager(memoryLimit:20) let same = UIImage(gifName: "same", levelOfIntegrity: Float(1)) self.imageView.setGifImage(same, manager: gifmanager)

tried with levelOfIntegrity of 1

kawolum commented 7 years ago

The image count is changed from 2 to 1 in the calculateFrameDelay function.