alexiscreuzot / SwiftyGif

High performance GIF engine
MIT License
2k stars 211 forks source link

gif images in table view cell with loading from url #127

Closed askar1680 closed 4 years ago

askar1680 commented 4 years ago

in prepareForReuse if to clear image view, I can't set gif image after. if not to set, sometimes images start to repeat. (I combined gifs and images)

Faari7 commented 4 years ago

I am also facing this issue and after spending hours on this issue, I commented on the code which I used by following this library and it starts working fine. This library is great but this issue is killing the complete purpose of the library :)

ad-1 commented 4 years ago

Same issue here using gifs in a collection view. Gif is slow to load firstly. Once it loads and the cell is reused the gif still appears even after setting to nil on dequeue. Makes it unusable for me unfortunately.

alexiscreuzot commented 4 years ago

Please use clear() method on the imageView

Faari7 commented 4 years ago

Please use clear() method on the imageView

when do we need to call that clear method?

alexiscreuzot commented 4 years ago

https://github.com/kirualex/SwiftyGif/blob/master/SwiftyGifExample/Cell.swift#L22-L25

Faari7 commented 4 years ago

https://github.com/kirualex/SwiftyGif/blob/master/SwiftyGifExample/Cell.swift#L22-L25

I just tried this solution but still, the issue is there.