damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit be1c03ad0effee0d0053e162de2b02c0baf84748
parent b2b62828e36f5614916932bfa72125451adc4baa
Author: OlegAba <mail@olegaba.com>
Date:   Wed,  8 Mar 2023 16:43:07 -0500

Fix KF options order

Closes: #758

Diffstat:
Mdamus/Util/KFOptionSetter+.swift | 10++++------
1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/damus/Util/KFOptionSetter+.swift b/damus/Util/KFOptionSetter+.swift @@ -14,20 +14,18 @@ extension KFOptionSetter { options.callbackQueue = .dispatch(.global(qos: .background)) options.processingQueue = .dispatch(.global(qos: .background)) options.downloader = CustomImageDownloader.shared - options.backgroundDecode = true - options.cacheOriginalImage = true - options.scaleFactor = UIScreen.main.scale - options.onlyLoadFirstFrame = should_disable_image_animation() - options.processor = CustomImageProcessor( maxSize: imageContext.maxMebibyteSize(), downsampleSize: imageContext.downsampleSize() ) - options.cacheSerializer = CustomCacheSerializer( maxSize: imageContext.maxMebibyteSize(), downsampleSize: imageContext.downsampleSize() ) + options.backgroundDecode = true + options.cacheOriginalImage = true + options.scaleFactor = UIScreen.main.scale + options.onlyLoadFirstFrame = should_disable_image_animation() return self }