commit e9f71ed07cb2c719c129416cd36e8b834bef7f30
parent c719058487570d7c64721372eb11eb10760c2550
Author: William Casarin <jb55@jb55.com>
Date: Wed, 12 Apr 2023 13:34:21 -0700
Load images asyncronously from disk
Changelog-Fixed: Fix hitches caused by syncronous loading of cached images
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/damus/Util/Extensions/KFOptionSetter+.swift b/damus/Util/Extensions/KFOptionSetter+.swift
@@ -22,6 +22,7 @@ extension KFOptionSetter {
maxSize: imageContext.maxMebibyteSize(),
downsampleSize: imageContext.downsampleSize()
)
+ options.loadDiskFileSynchronously = false
options.backgroundDecode = true
options.cacheOriginalImage = true
options.scaleFactor = UIScreen.main.scale