taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 3c8822b54bdeea26fea26c63e00ebfafd9915875
parent ee29984692835ed6d70b0c8d66950c83abf7f730
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 24 Apr 2025 12:34:41 +0200

QR

Diffstat:
MTalerWallet1/Views/HelperViews/Buttons.swift | 6++++--
MTalerWallet1/Views/OIM/OIMView.swift | 6+++---
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/TalerWallet1/Views/HelperViews/Buttons.swift b/TalerWallet1/Views/HelperViews/Buttons.swift @@ -115,8 +115,10 @@ struct QRButton : View { let qrText = Text("\(qrImage)", comment: "QR Image") Button(action: checkCameraAvailable) { if hideTitle { - qrText.talerFont(.largeTitle) - .padding(.horizontal) + qrImage + .resizable() + .scaledToFit() + .foregroundStyle(WalletColors().talerColor) } else if minimalistic { let width = UIScreen.screenWidth / 7 qrText.talerFont(.largeTitle) diff --git a/TalerWallet1/Views/OIM/OIMView.swift b/TalerWallet1/Views/OIM/OIMView.swift @@ -94,16 +94,16 @@ struct OIMView: View { // let _ = Self._printChanges() let currency = cash.currency - let actions = HStack { + let actions = HStack(alignment: .top) { QRButton(hideTitle: true) { - // TODO: morph into view // var transaction = Transaction() // transaction.disablesAnimations = true // withTransaction(transaction) { qrButtonTapped = true // } } - .buttonStyle(TalerButtonStyle(type: .bordered, narrow: true, aligned: .center)) + .frame(width: 66, height: 66) + .matchedGeometryEffect(id: "OIMback", in: wrapper.namespace,isSource: true) Spacer() Button(action: sendAction) { Image("SendTaler")