We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792da1d commit 30c72e1Copy full SHA for 30c72e1
swift-paperless/Views/Document/DocumentPreview.swift
@@ -47,6 +47,8 @@ private final class IntegratedDocumentPreviewModel {
47
pipeline: ImagePipeline,
48
image: FetchImage
49
) async {
50
+
51
+ // @TODO: If we have a cache hit on the downloaded PDF, skip the blurred thumbnail
52
53
image.transaction = Transaction(animation: .linear(duration: 0.1))
54
@@ -101,8 +103,7 @@ private struct IntegratedDocumentPreview: View {
101
103
image.image?
102
104
.resizable()
105
.scaledToFit()
- .blur(radius: 10)
- .frame(minHeight:400)
106
+ .blur(radius: 5, opaque: true)
107
108
case .error:
109
Label("Unable to load preview", systemImage: "eye.slash")
0 commit comments