taler-ios

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

commit b24a454f5e3eaffcc587039b64a1544ca83b30e6
parent 9bd0c7d7f4fad5621fdb782695a2bd8fcdb34fc6
Author: Marc Stibane <marc@taler.net>
Date:   Sat, 27 Jul 2024 14:59:07 +0200

wire fee

Diffstat:
MTalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift | 12+++++-------
MTalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift | 2++
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift @@ -18,6 +18,7 @@ struct WithdrawAcceptView: View { // the URL from the bank website let url: URL @Binding var amountToTransfer: Amount + @Binding var wireFee: Amount? @Binding var exchange: Exchange? @EnvironmentObject private var controller: Controller @@ -71,13 +72,10 @@ struct WithdrawAcceptView: View { txStateLcl: nil, // common.txState.major.localizedState summary: nil, merchant: nil) - let coinData = CoinData(details: withdrawalAmountDetails) - QuiteSomeCoins(currencyInfo: $currencyInfo, -// amountEffective: effective, - currency: currency, - coinData: coinData, - shouldShowFee: true, // TODO: set to false if we never charge withdrawal fees - feeIsNegative: true) + if let wireFee { + let feeStr = wireFee.formatted(currencyInfo, isNegative: false) + Text("Your bank's wire fee: \(feeStr)") + } } .listStyle(myListStyle.style).anyView .navigationTitle(navTitle) diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift @@ -128,6 +128,7 @@ struct WithdrawURIView: View { currencyInfo: $currencyInfo, url: url, amountToTransfer: $amountToTransfer, + wireFee: $wireFee, exchange: $exchange) if amountIsEditable { ScrollView { @@ -136,6 +137,7 @@ struct WithdrawURIView: View { currencyInfo: $currencyInfo, url: url, amountToTransfer: $amountShortcut, + wireFee: $wireFee, exchange: $exchange) } // TODO: input amount, then