From 0c7054ce3096e0d2458cb12b531d928cd68975c2 Mon Sep 17 00:00:00 2001 From: jack Date: Sun, 24 Aug 2025 18:16:42 +0200 Subject: [PATCH] =?UTF-8?q?QR:=20fix=20SwiftUI=20modifiers=20=E2=80=94=20a?= =?UTF-8?q?pply=20.interpolation(.none)=20and=20.resizable()=20to=20platfo?= =?UTF-8?q?rm=20Image=20inside=20ImageWrapper;=20remove=20from=20wrapper?= =?UTF-8?q?=20usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bitchat/Views/VerificationViews.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bitchat/Views/VerificationViews.swift b/bitchat/Views/VerificationViews.swift index ee9191e7..1bb40965 100644 --- a/bitchat/Views/VerificationViews.swift +++ b/bitchat/Views/VerificationViews.swift @@ -57,8 +57,6 @@ struct QRCodeImage: View { Group { if let image = generateImage() { ImageWrapper(image: image) - .interpolation(.none) - .resizable() .frame(width: size, height: size) } else { RoundedRectangle(cornerRadius: 8) @@ -91,9 +89,13 @@ struct ImageWrapper: View { #if os(iOS) let ui = UIImage(cgImage: image) return Image(uiImage: ui) + .interpolation(.none) + .resizable() #else let ns = NSImage(cgImage: image, size: .zero) return Image(nsImage: ns) + .interpolation(.none) + .resizable() #endif } }