taler-ios

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

commit c4533fd6de6d7edf03163f58f5d55207b0aeb4d8
parent d187278fa312b12b5f58ed5bfab180c8e69a5b00
Author: Marc Stibane <marc@taler.net>
Date:   Wed,  6 Dec 2023 23:56:43 +0100

Minimalistic

Diffstat:
MTalerWallet1/Views/Exchange/ManualWithdraw.swift | 2+-
MTalerWallet1/Views/HelperViews/ToSButtonView.swift | 7+++++--
MTalerWallet1/Views/Peer2peer/RequestPayment.swift | 2+-
MTalerWallet1/Views/Peer2peer/SendAmount.swift | 2+-
4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/TalerWallet1/Views/Exchange/ManualWithdraw.swift b/TalerWallet1/Views/Exchange/ManualWithdraw.swift @@ -52,7 +52,7 @@ struct ManualWithdraw: View { .accessibilityFont(.body) CurrencyInputView(amount: $amountToTransfer, available: nil, - title: iconOnly ? String(localized: "How much:") + title: iconOnly ? String(localized: "Amount:") : String(localized: "Amount to withdraw:"), shortcutAction: nil) .padding(.top) diff --git a/TalerWallet1/Views/HelperViews/ToSButtonView.swift b/TalerWallet1/Views/HelperViews/ToSButtonView.swift @@ -14,9 +14,12 @@ struct ToSButtonView: View { let viewID: Int // either VIEW_WITHDRAW_TOS or SHEET_WITHDRAW_TOS let p2p: Bool + @AppStorage("iconOnly") var iconOnly: Bool = false + var body: some View { - let hint = p2p ? String(localized: "You must accept the Exchange's Terms of Service first before you can receive electronic cash in your wallet.", comment: "P2P Receive") - : String(localized: "You must accept the Exchange's Terms of Service first before you can use it to withdraw electronic cash to your wallet.") + let hint = iconOnly ? String(localized: "You must accept the Exchange's Terms of Service first.") + : p2p ? String(localized: "You must accept the Exchange's Terms of Service first before you can receive electronic cash in your wallet.", comment: "P2P Receive") + : String(localized: "You must accept the Exchange's Terms of Service first before you can use it to withdraw electronic cash to your wallet.") Text(hint) .accessibilityFont(.body) .multilineTextAlignment(.leading) diff --git a/TalerWallet1/Views/Peer2peer/RequestPayment.swift b/TalerWallet1/Views/Peer2peer/RequestPayment.swift @@ -63,7 +63,7 @@ struct RequestPayment: View { ScrollView { VStack(alignment: .trailing) { CurrencyInputView(amount: $amountToTransfer, available: nil, - title: iconOnly ? String(localized: "How much:") + title: iconOnly ? String(localized: "Amount:") : String(localized: "Amount to request:"), shortcutAction: shortcutAction) .padding(.top) diff --git a/TalerWallet1/Views/Peer2peer/SendAmount.swift b/TalerWallet1/Views/Peer2peer/SendAmount.swift @@ -87,7 +87,7 @@ struct SendAmount: View { .padding(.bottom, 2) CurrencyInputView(amount: $amountToTransfer, available: amountAvailable, - title: iconOnly ? String(localized: "How much:") + title: iconOnly ? String(localized: "Amount:") : String(localized: "Amount to send:"), shortcutAction: shortcutAction) Text(insufficient ? insufficientLabel