Open KimiChiu opened 6 years ago
@KimiChiu
There is AnimatedImageView
that can play gif, can you use it?
I tried, it worked the same as UIImage. Both of them need to remove .backgroundDecode.
@KimiChiu
From my understanding, backgroundDecode
doesn't support gif for now, please see https://github.com/onevcat/Kingfisher/issues/625
@KimiChiu so at least, how did you resolve this problem, i have faced some issue with you.
Normally I thinks we don't need to decode GIF with .backgroundDecode option when you use AnimatedImageView
to display. AnimatedImageView
will preload and resize(if needsPrescaling
is true, default is true) frame in a serial queue, it will decode the frame into bitmap indirectly while resizing.
Here's how I use it.
The GIF is played well without .backgroundDecode.