Fix frequent KFImage hang

Changelog-Fixed: Fix some hangs when scrolling by images
Closes: #614
This commit is contained in:
OlegAba authored and William Casarin committed 2023-02-15 11:13:04 -08:00
1 parent 1e22984d52
commit f0075904c2
3 files changed
+10 -9

No files matched your search

+2 -2
View File
@@ -231,10 +231,10 @@ struct ImageCarousel: View {
KFAnimatedImage(url)
.callbackQueue(.dispatch(.global(qos: .background)))
.processingQueue(.dispatch(.global(qos: .background)))
.cancelOnDisappear(true)
.backgroundDecode()
.cacheOriginalImage()
.loadDiskFileSynchronously()
.scaleFactor(UIScreen.main.scale)
.fade(duration: 0.1)
.configure { view in
view.framePreloadCount = 3
}