commit 3db13ae1710217f4b3c335e4f8ce79ce8e81b28d
parent df20b67fc12d10bec362e79f2ef7f4205f532871
Author: William Casarin <jb55@jb55.com>
Date: Tue, 20 Jun 2023 10:18:23 +0200
Fix build for iOS17
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/damus/Util/EventCache.swift b/damus/Util/EventCache.swift
@@ -398,7 +398,7 @@ func preload_image(url: URL) {
print("Preloading image \(url.absoluteString)")
- KingfisherManager.shared.retrieveImage(with: ImageResource(downloadURL: url)) { val in
+ KingfisherManager.shared.retrieveImage(with: Kingfisher.ImageResource(downloadURL: url)) { val in
print("Preloaded image \(url.absoluteString)")
}
}
diff --git a/damus/Util/Extensions/KFOptionSetter+.swift b/damus/Util/Extensions/KFOptionSetter+.swift
@@ -40,7 +40,7 @@ extension KFOptionSetter {
func onFailure(fallbackUrl: URL?, cacheKey: String?) -> Self {
guard let url = fallbackUrl, let key = cacheKey else { return self }
- let imageResource = ImageResource(downloadURL: url, cacheKey: key)
+ let imageResource = Kingfisher.ImageResource(downloadURL: url, cacheKey: key)
let source = imageResource.convertToSource()
options.alternativeSources = [source]