Skip to content

Commit

Permalink
Top QR code width/height (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbzurovski committed Jul 22, 2024
1 parent 72d40de commit d970db6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public extension AddressDetails {
.foregroundColor(.app.gray1)

qrCode
.padding(.horizontal, .large2)
}
}
}
Expand All @@ -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))
Expand Down

0 comments on commit d970db6

Please sign in to comment.