From c0b9eb40823ea1bdc53ffd9dd48a0dab8a43a290 Mon Sep 17 00:00:00 2001 From: lumaa-dev Date: Mon, 11 Nov 2024 13:07:15 +0100 Subject: [PATCH] Imaging issues --- Bubble/Components/Post/CompactPostView.swift | 6 +++--- Bubble/Components/Post/PostAttachment.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Bubble/Components/Post/CompactPostView.swift b/Bubble/Components/Post/CompactPostView.swift index 789577a..b83d601 100644 --- a/Bubble/Components/Post/CompactPostView.swift +++ b/Bubble/Components/Post/CompactPostView.swift @@ -133,7 +133,7 @@ struct CompactPostView: View { } if status.card != nil && status.mediaAttachments.isEmpty && !hasQuote { - PostCardView(card: status.card!) + PostCardView(card: status.card!, imaging: self.imaging) } attachmnts @@ -172,7 +172,7 @@ struct CompactPostView: View { ScrollView(.horizontal, showsIndicators: false) { HStack(alignment: .firstTextBaseline, spacing: 5) { ForEach(status.mediaAttachments) { attachment in - PostAttachment(attachment: attachment, isFeatured: false, isImaging: imaging) + PostAttachment(attachment: attachment, isFeatured: false, isImaging: self.imaging) .blur(radius: status.sensitive ? 15.0 : 0) .onTapGesture { navigator.presentedCover = .media(attachments: status.mediaAttachments, selected: attachment) @@ -182,7 +182,7 @@ struct CompactPostView: View { } .scrollClipDisabled() } else { - PostAttachment(attachment: status.mediaAttachments.first!, isImaging: imaging) + PostAttachment(attachment: status.mediaAttachments.first!, isImaging: self.imaging) .onTapGesture { navigator.presentedCover = .media(attachments: status.mediaAttachments, selected: status.mediaAttachments[0]) } diff --git a/Bubble/Components/Post/PostAttachment.swift b/Bubble/Components/Post/PostAttachment.swift index 3403b13..0218680 100644 --- a/Bubble/Components/Post/PostAttachment.swift +++ b/Bubble/Components/Post/PostAttachment.swift @@ -134,7 +134,7 @@ struct PostAttachment: View { GeometryReader { _ in // Audio later because it's a lil harder if let url = attachment.previewUrl { - OnlineImage(url: url, size: !isFeatured ? imageMaxHeight / 1.5 : newSize.width, priority: .veryHigh) + OnlineImage(url: url, size: !isFeatured ? imageMaxHeight / 1.5 : newSize.width, useNuke: self.isImaging) } } .frame(width: !isFeatured ? imageMaxHeight / 1.5 : newSize.width, height: !isFeatured ? imageMaxHeight: newSize.height)