commit b274d0750c4237cf565ba9bf0abb4edfd0e53bb9
parent 02e39080f1d77fdfa82cc3ec7c29570d83ec7311
Author: Marc Stibane <marc@taler.net>
Date: Sun, 12 Nov 2023 23:55:36 +0100
Minimalistic
Diffstat:
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Views/Exchange/ManualWithdraw.swift b/TalerWallet1/Views/Exchange/ManualWithdraw.swift
@@ -14,6 +14,7 @@ struct ManualWithdraw: View {
let exchange: Exchange
@Binding var amountToTransfer: Amount
+ @AppStorage("iconOnly") var iconOnly: Bool = false
@EnvironmentObject private var model: WalletModel
@State var withdrawalAmountDetails: WithdrawalAmountDetails? = nil
@@ -33,7 +34,8 @@ struct ManualWithdraw: View {
ScrollView {
VStack {
CurrencyInputView(amount: $amountToTransfer,
- title: String(localized: "Amount to withdraw:"))
+ title: iconOnly ? String(localized: "How much:")
+ : String(localized: "Amount to withdraw:"))
let someCoins = SomeCoins(details: withdrawalAmountDetails)
QuiteSomeCoins(someCoins: someCoins, shouldShowFee: true,
currency: currency, amountEffective: withdrawalAmountDetails?.amountEffective)
diff --git a/TalerWallet1/Views/Peer2peer/RequestPayment.swift b/TalerWallet1/Views/Peer2peer/RequestPayment.swift
@@ -14,6 +14,7 @@ struct RequestPayment: View {
@Binding var amountToTransfer: Amount
@Binding var summary: String
+ @AppStorage("iconOnly") var iconOnly: Bool = false
@EnvironmentObject private var model: WalletModel
@State private var peerPullCheck: CheckPeerPullCreditResponse? = nil
@@ -29,7 +30,8 @@ struct RequestPayment: View {
ScrollView { VStack {
CurrencyInputView(amount: $amountToTransfer,
- title: String(localized: "Amount to request:"))
+ title: iconOnly ? String(localized: "How much:")
+ : String(localized: "Amount to request:"))
let someCoins = SomeCoins(details: peerPullCheck)
QuiteSomeCoins(someCoins: someCoins, shouldShowFee: true,
diff --git a/TalerWallet1/Views/Peer2peer/SendAmount.swift b/TalerWallet1/Views/Peer2peer/SendAmount.swift
@@ -15,6 +15,7 @@ struct SendAmount: View {
@Binding var amountToTransfer: Amount
@Binding var summary: String
+ @AppStorage("iconOnly") var iconOnly: Bool = false
@EnvironmentObject private var model: WalletModel
@State var peerPushCheck: CheckPeerPushDebitResponse? = nil
@@ -46,7 +47,8 @@ struct SendAmount: View {
.accessibilityFont(.title3)
.padding(.bottom, 2)
CurrencyInputView(amount: $amountToTransfer,
- title: String(localized: "Amount to send:"))
+ title: iconOnly ? String(localized: "How much:")
+ : String(localized: "Amount to send:"))
Text("+ \(fee) payment fee")
.accessibilityFont(.body)
.foregroundColor(.red)