Skip to content

Commit 30c72e1

Browse files
committed
tune blur loading
1 parent 792da1d commit 30c72e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

swift-paperless/Views/Document/DocumentPreview.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ private final class IntegratedDocumentPreviewModel {
4747
pipeline: ImagePipeline,
4848
image: FetchImage
4949
) async {
50+
51+
// @TODO: If we have a cache hit on the downloaded PDF, skip the blurred thumbnail
5052

5153
image.transaction = Transaction(animation: .linear(duration: 0.1))
5254

@@ -101,8 +103,7 @@ private struct IntegratedDocumentPreview: View {
101103
image.image?
102104
.resizable()
103105
.scaledToFit()
104-
.blur(radius: 10)
105-
.frame(minHeight:400)
106+
.blur(radius: 5, opaque: true)
106107

107108
case .error:
108109
Label("Unable to load preview", systemImage: "eye.slash")

0 commit comments

Comments
 (0)