Wei Wang
Wei Wang
感谢感谢。我细查一下,如果能加的话,可能后续考虑为这个问题加一个 option,这样就不需要大家去自己实现一遍了。
@HIIgor 感谢汇报。 虽然可能不完全是对应这个crash stack,但是经过排查,发现了另一个可能会造成类似问题的情况。能麻烦试试看 `fix/duplicated-completion-call` [这个 branch](https://github.com/onevcat/Kingfisher/tree/fix/duplicated-completion-call) 能不能重现么?
LivePhoto有点特殊,首先它完全不走 memory cache,所以你不能通过这个方法去获取。你需要memory获取的话,可以从 result 里拿一个 PHLivePhoto 的引用。 另外,如果是想从 disk 中拿源图片和视频的话,因为 PhotoKit 的关系,在 disk 存储的时候必须带 extension,需要[强制指定](https://github.com/onevcat/Kingfisher/blob/2dd662b6d215b21521b6579f3fae64c421c6d3d0/Sources/General/KingfisherOptionsInfo.swift#L351)一下。
Hi, @sagarrai21802 Thank you for taking the time to work on this—it’s greatly appreciated. There are a few blocking issues and let me explain them: - The change makes `.onFailureImage`...
@fighter888N Kingfisher should not have produced any logs; what kind of logs are you referring to? Can you give me an example?
我印象中从来没有过 `CacheKeyProvider` 这种东西...需要自定义缓存 key 的话,可以不使用 URL,而是创建 `ImageResource`: https://swiftpackageindex.com/onevcat/kingfisher/master/documentation/kingfisher/commontasks_cache#Using-another-cache-key
Thank you for reporting this issue. Could you provide more details? 1. Where did you add the extension? I tried adding it to a demo app target and received the...
我没有太看出两种写法具体的差别...如果可能的话,希望能构建一个最小的重现例子,把无关部分都剔除一下。 最大的可能看起来是 size 的问题:在第一次设置时和后续刷新时,传给 DownsamplingImageProcessor 的 size 是不是不同?因为只有完全相同的 `identifier`,才能完整地在 cache 中找到,而如果两次 processor 的尺寸不同的话,会认为并没有在 cache 中,就会进行异步加载导致“闪烁”。建议可以从这个方面 debug 一下看看。
TODO: Find a good time to completely remove the old name.