Kingfisher
Kingfisher copied to clipboard
AnimationImageView images资源某几帧被释放
Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
- [ ] I have read the wiki page and cheat sheet, but there is no information I need.
- [ ] I have searched in existing issues, but did not find a same one.
- [ ] I want to report a problem instead of asking a question. It'd better to use kingfisher tag in Stack Overflow to ask a question.
Issue Description
场景:tableviewcell中,tableview刷新频率比较高,cell也有几率被移除。
[Tell us about the issue]
Reproduce
[The steps to reproduce this issue. What is the url you were trying to load, where did you put your code, etc.]
Other Comment
[Add anything else here]
其他cell内的相同gif有正常显示,在某一次刷新出现了currentAnimatedFrame中的image为空了 现在我只能修改了currentAnimatedFrame的判断,防止崩溃,但是具体原因却没有找到 请各位大佬帮忙分析一下 animatedFrames[previousFrameIndex] = animatedFrames[previousFrameIndex]?.placeholderFrame preloadIndexes(start: currentFrameIndex).forEach { index in guard let currentAnimatedFrame = animatedFrames[index] else { return } if !currentAnimatedFrame.isPlaceholder { return } animatedFrames[index] = currentAnimatedFrame.makeAnimatedFrame(image: loadFrame(at: index)) }
我也遇到了