From d970db6b03d2abba00a2491ff2e980d9fbaabe7f Mon Sep 17 00:00:00 2001 From: matiasbzurovski <164921079+matiasbzurovski@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:12:01 +0200 Subject: [PATCH] Top QR code width/height (#1233) --- .../Core/FeaturePrelude/AddressView/AddressDetails+View.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RadixWallet/Core/FeaturePrelude/AddressView/AddressDetails+View.swift b/RadixWallet/Core/FeaturePrelude/AddressView/AddressDetails+View.swift index 58f46f4ffd..0cce54bebc 100644 --- a/RadixWallet/Core/FeaturePrelude/AddressView/AddressDetails+View.swift +++ b/RadixWallet/Core/FeaturePrelude/AddressView/AddressDetails+View.swift @@ -65,7 +65,6 @@ public extension AddressDetails { .foregroundColor(.app.gray1) qrCode - .padding(.horizontal, .large2) } } } @@ -75,9 +74,10 @@ public extension AddressDetails { switch store.qrImage { case let .success(value): GeometryReader { proxy in + let size = min(proxy.size.height, proxy.size.width, 275) Image(decorative: value, scale: 1) .resizable() - .frame(width: proxy.size.height, height: proxy.size.height) + .frame(width: size, height: size) .position(x: proxy.frame(in: .local).midX, y: proxy.frame(in: .local).midY) } .transition(.scale(scale: 0.95).combined(with: .opacity))