taler-ios

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

commit 25ef2d8a8e7146a3ea604fabb89249d777710161
parent 1a5c9a9efceba7912c3ef826961d73defb316b90
Author: Marc Stibane <marc@taler.net>
Date:   Mon, 24 Jul 2023 16:46:38 +0200

Hints for manual withdrawal, Accessibility

Diffstat:
MTalerWallet1/Views/Transactions/ManualDetails.swift | 31++++++++++++-------------------
1 file changed, 12 insertions(+), 19 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/ManualDetails.swift b/TalerWallet1/Views/Transactions/ManualDetails.swift @@ -14,49 +14,42 @@ struct ManualDetails: View { let payURL = URL(string: payto) let iban = payURL?.iban ?? "unknown IBAN" let amount = common.amountRaw.readableDescription - Text("Make a wire transfer of \(amount) to:") - .monospacedDigit() + Text("From your regular bank account, make a wire transfer of \(amount) to:") + .multilineTextAlignment(.leading) .listRowSeparator(.hidden) HStack { Text(iban) .monospacedDigit() Spacer() CopyButton(textToCopy: iban, vertical: true) - .accessibilityLabel("Copy IBAN") + .accessibilityLabel("Copy the IBAN") .disabled(false) } .padding(.leading) .padding(.vertical, -8) .listRowSeparator(.hidden) - Text("and use the transaction subject:") + Text("with the code below as subject to receive the money in this wallet:") + .multilineTextAlignment(.leading) .listRowSeparator(.hidden) HStack { Text(details.reservePub) .monospacedDigit() - .accessibilityLabel("Taler cryptocode") + .accessibilityLabel("Cryptocode") Spacer() CopyButton(textToCopy: details.reservePub, vertical: true) - .accessibilityLabel("Copy subject") + .accessibilityLabel("Copy the cryptocode") .disabled(false) } .padding(.leading) - .padding(.vertical, -8) .listRowSeparator(.hidden) HStack { + Text(verbatim: "|") // only reason for this leading-aligned text is to get a nice full length listRowSeparator + .accessibilityHidden(true) + .foregroundColor(Color.clear) Spacer() ShareButton(textToShare: payto) - .accessibilityLabel("Share PayTo URL") + .accessibilityLabel("Share the PayTo URL") .disabled(false) Spacer() - } .listRowSeparator(.hidden) - Text(verbatim: "PayTo URL") // only reason for this leading-aligned text is to get a nice full length listRowSeparator - .font(.footnote) -#if DEBUG - .foregroundColor(Color.yellow) -#else - .foregroundColor(Color.clear) -#endif - .padding(.vertical, -8) - .listRowSeparator(.automatic) - .accessibilityHidden(true) + } .listRowSeparator(.automatic) } } }