Fix frequent KFImage hang

Changelog-Fixed: Fix some hangs when scrolling by images
Closes: #614
This commit is contained in:
OlegAba
2023-02-14 21:51:06 -05:00
committed by William Casarin
parent 1e22984d52
commit f0075904c2
3 changed files with 10 additions and 9 deletions

View File

@@ -33,15 +33,15 @@ struct InnerBannerImageView: View {
.processingQueue(.dispatch(.global(qos: .background)))
.serialize(by: imageModel.serializer)
.setProcessor(imageModel.processor)
.cacheOriginalImage()
.configure { view in
view.framePreloadCount = 1
view.framePreloadCount = 3
}
.placeholder { _ in
Color(uiColor: .secondarySystemBackground)
}
.scaleFactor(UIScreen.main.scale)
.loadDiskFileSynchronously()
.fade(duration: 0.1)
.onFailureImage(defaultImage)
.id(imageModel.refreshID)
} else {