Wei Wang
Wei Wang
Maybe you meant the `onFailureImage` option? Check the doc here https://swiftpackageindex.com/onevcat/kingfisher/master/documentation/kingfisher/kingfisheroptionsinfoitem/onfailureimage(_:)
``` Multiple commands produce '/Users/tmaly/Library/Developer/Xcode/DerivedData/MyApp-gxywjyvskcjlfzafdrwkjcarggvl/Build/Products/Debug-iphonesimulator/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/Kingfisher.framework' Multiple commands produce '/Users/tmaly/Library/Developer/Xcode/DerivedData/MyApp-gxywjyvskcjlfzafdrwkjcarggvl/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks/Kingfisher.framework' ``` This seems meaning that you are trying to embed Kingfisher to both your test target and the actual app target....
无论如何都是需要发生一次HTTP请求的。Kingfisher并没有预先检查这些,所以需要自己实现一下。如果你的server端实现正确的话,可以向资源URI发一个HEAD请求,通过检查header 的 content type来判断到底是视频还是图片(当然,前提是你的server返回的这个值是正确的),然后再决定后续使用 Kingfisher 的方式和逻辑。
TASK: Consider to add a header check when receiving the first data chunk (or header). Early fails with an error if the expected type cannot be handled.
Yep. To produce the memory increasing fast enough for demonstrating purpose.
这个场景,我个人现在的建议是,你可以为每个URL设置一个 `cache` (伪代码,不一定正确): ```swift var caches = [String: ImageCache]() func imageCacheForURL(_ url: URL) -> ImageCache { caches[url.absoluteString] ?? { let c = ImageCache(name: url.absoluteString) caches[url.absoluteString] = c return c }()...
Hi, Yes, as mentioned above, if a channel is not published yet, only a certain set of users (the account owner and added developers in the Channel Console) can perform...
@rslifka Previously in the dark age of SwiftUI, there was once a [`loadImmediately`](https://swiftpackageindex.com/onevcat/kingfisher/7.4.1/documentation/kingfisher/kfimage/loadimmediately(_:)) which might be "fixing" this issue. However, it is now removed long ago. Maybe it is actually...
I added a method in this [`fix/load-before-view-appear`](https://github.com/onevcat/Kingfisher/tree/fix/load-before-view-appear) branch. It basically brings back the functionality of [loadImmediately](https://swiftpackageindex.com/onevcat/kingfisher/7.4.1/documentation/kingfisher/kfimage/loadimmediately(_:)) back and allows you to load the images as soon as the `KFImage` body...
Thank you, all folks! Then let me prepare a release for this as a better workaround, before Apple can fix it someday later.