From 3db13ae1710217f4b3c335e4f8ce79ce8e81b28d Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 20 Jun 2023 10:18:23 +0200 Subject: [PATCH] Fix build for iOS17 --- damus/Util/EventCache.swift | 2 +- damus/Util/Extensions/KFOptionSetter+.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/damus/Util/EventCache.swift b/damus/Util/EventCache.swift index c20a0a68..d28bb423 100644 --- 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 index ff8786c4..5b3a17e8 100644 --- 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]