taler-ios

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

commit b8d581077e3e6c5e2c7a2c7b64db98a29208d702
parent e17561c6b2839de6adc6e8cd7179a15c6997d556
Author: Marc Stibane <marc@taler.net>
Date:   Mon, 18 Nov 2024 16:06:34 +0100

Available for transfer

Diffstat:
MTalerWallet1/Views/Actions/Peer2peer/SendAmountView.swift | 2+-
MTalerWallet1/Views/HelperViews/CurrencyInputView.swift | 4++--
MTalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift | 4+---
3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Views/Actions/Peer2peer/SendAmountView.swift b/TalerWallet1/Views/Actions/Peer2peer/SendAmountView.swift @@ -169,7 +169,7 @@ struct SendAmountView: View { AmountInputV(stack: stack.push(), scope: scopeInfo, amountAvailable: $amountAvailable, - amountLabel: nil, // will use "Available: xxx", trailing + amountLabel: nil, // will use "Available for transfer: xxx", trailing amountToTransfer: $amountToTransfer, amountLastUsed: amountLastUsed, wireFee: nil, diff --git a/TalerWallet1/Views/HelperViews/CurrencyInputView.swift b/TalerWallet1/Views/HelperViews/CurrencyInputView.swift @@ -120,7 +120,7 @@ struct CurrencyInputView: View { } if let available { let availableStr = available.formatted(scope, isNegative: false) - return String(localized: "Available: \(availableStr)") + return String(localized: "Available for transfer: \(availableStr)") } return nil } @@ -148,7 +148,7 @@ struct CurrencyInputView: View { if let heading = heading() { Text(heading) .padding(.horizontal, 4) - .frame(maxWidth: .infinity, alignment: title != nil ? .leading : .trailing) + .frame(maxWidth: .infinity, alignment: .trailing) // title != nil ? .leading : .talerFont(.title2) .accessibilityAddTraits(.isHeader) .if(title == nil && available != nil) { view in diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift @@ -164,12 +164,10 @@ struct WithdrawURIView: View { NavLink($buttonSelected) { acceptDestination } } // TODO: input amount, then - let amountLabel = minimalistic ? String(localized: "Amount:") - : String(localized: "Amount to withdraw:") AmountInputV(stack: stack.push(), scope: exchange.scopeInfo, amountAvailable: $amountZero, - amountLabel: amountLabel, + amountLabel: nil, // will use "Available for transfer: xxx", trailing amountToTransfer: $amountToTransfer, amountLastUsed: amountLastUsed, wireFee: wireFee,