diff options
author | Marc Stibane <marc@taler.net> | 2023-12-06 23:56:43 +0100 |
---|---|---|
committer | Marc Stibane <marc@taler.net> | 2023-12-06 23:57:46 +0100 |
commit | c4533fd6de6d7edf03163f58f5d55207b0aeb4d8 (patch) | |
tree | 39010da518ba5969685c4668c3088011d9630f5e | |
parent | d187278fa312b12b5f58ed5bfab180c8e69a5b00 (diff) | |
download | taler-ios-c4533fd6de6d7edf03163f58f5d55207b0aeb4d8.tar.gz taler-ios-c4533fd6de6d7edf03163f58f5d55207b0aeb4d8.tar.bz2 taler-ios-c4533fd6de6d7edf03163f58f5d55207b0aeb4d8.zip |
Minimalistic
4 files changed, 8 insertions, 5 deletions
diff --git a/TalerWallet1/Views/Exchange/ManualWithdraw.swift b/TalerWallet1/Views/Exchange/ManualWithdraw.swift index da6e34b..0ad86f6 100644 --- 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 index 45a2a91..87ce635 100644 --- 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 index 45c0441..f30bb0f 100644 --- 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 index d66f41c..d74d264 100644 --- 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 |