taler-ios

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

commit d9dde4b18c29dc8fa622d5397b509a7c40a6bb88
parent c0faa259190709a70a6fa043199dba5a54b9b444
Author: Marc Stibane <marc@taler.net>
Date:   Wed, 19 Jul 2023 12:22:18 +0200

monospacedDigit

Diffstat:
MTalerWallet1/Controllers/DebugViewC.swift | 1+
MTalerWallet1/Views/Balances/BalanceRowView.swift | 1+
MTalerWallet1/Views/Balances/PendingRowView.swift | 1+
MTalerWallet1/Views/HelperViews/AmountView.swift | 1+
MTalerWallet1/Views/Sheets/Sheet.swift | 1+
MTalerWallet1/Views/Transactions/ManualDetails.swift | 3+++
MTalerWallet1/Views/Transactions/TransactionRowView.swift | 1+
7 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/TalerWallet1/Controllers/DebugViewC.swift b/TalerWallet1/Controllers/DebugViewC.swift @@ -118,6 +118,7 @@ struct DebugViewV: View { Text(viewIDString) .font(.caption2) .foregroundColor(.red) + .monospacedDigit() Spacer() } .edgesIgnoringSafeArea(.top) diff --git a/TalerWallet1/Views/Balances/BalanceRowView.swift b/TalerWallet1/Views/Balances/BalanceRowView.swift @@ -23,6 +23,7 @@ struct BalanceButton: View { } Text(verbatim: "\(amount.valueStr)") // TODO: CurrencyFormatter? .font(.title) + .monospacedDigit() } } .disabled(false) .accessibilityElement(children: /*@START_MENU_TOKEN@*/.ignore/*@END_MENU_TOKEN@*/) diff --git a/TalerWallet1/Views/Balances/PendingRowView.swift b/TalerWallet1/Views/Balances/PendingRowView.swift @@ -28,6 +28,7 @@ struct PendingRowView: View { Text(valueStr) .font(.title) .foregroundColor(WalletColors().pendingColor(incoming)) + .monospacedDigit() // Text("PENDING") // .font(.callout) // .foregroundColor(WalletColors().pendingColor(incoming)) diff --git a/TalerWallet1/Views/HelperViews/AmountView.swift b/TalerWallet1/Views/HelperViews/AmountView.swift @@ -22,6 +22,7 @@ struct AmountView: View { .font(large ? .title : .title2) // .fontWeight(large ? .medium : .regular) // @available(iOS 16.0, *) .foregroundColor(color) + .monospacedDigit() Spacer() } } diff --git a/TalerWallet1/Views/Sheets/Sheet.swift b/TalerWallet1/Views/Sheets/Sheet.swift @@ -36,6 +36,7 @@ struct Sheet: View { Text(idString) .font(.caption2) .foregroundColor(.purple) + .monospacedDigit() .edgesIgnoringSafeArea(.top) .id("sheetID") } diff --git a/TalerWallet1/Views/Transactions/ManualDetails.swift b/TalerWallet1/Views/Transactions/ManualDetails.swift @@ -15,9 +15,11 @@ struct ManualDetails: View { let iban = payURL?.iban ?? "unknown IBAN" let amount = common.amountRaw.readableDescription Text("Make a wire transfer of \(amount) to:") + .monospacedDigit() .listRowSeparator(.hidden) HStack { Text(iban) + .monospacedDigit() Spacer() CopyButton(textToCopy: iban, vertical: true) .accessibilityLabel("Copy IBAN") @@ -29,6 +31,7 @@ struct ManualDetails: View { .listRowSeparator(.hidden) HStack { Text(details.reservePub) + .monospacedDigit() .accessibilityLabel("Taler cryptocode") Spacer() CopyButton(textToCopy: details.reservePub, vertical: true) diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift b/TalerWallet1/Views/Transactions/TransactionRowView.swift @@ -53,6 +53,7 @@ struct TransactionRowView: View { Text(valueStr) .font(.title) .foregroundColor(foreColor) + .monospacedDigit() } } .accessibilityElement(children: .combine)