diff --git a/TalerWallet1/Views/Transactions/TransactionTypeDetail.swift b/TalerWallet1/Views/Transactions/TransactionTypeDetail.swift index 75efbdfb..4a8cd6ab 100755 --- a/TalerWallet1/Views/Transactions/TransactionTypeDetail.swift +++ b/TalerWallet1/Views/Transactions/TransactionTypeDetail.swift @@ -145,6 +145,23 @@ struct TransactionTypeDetail: View { feeIsNegative: false, large: true, summary: nil) + // the bank account this deposit goes to + let target = depositTransaction.details.targetPaytoUri + let targetURL = URL(string: target) + let (methodType, account): (String, String?) = + if let iban = targetURL?.iban { ("IBAN", iban) } + else if let cyclos = targetURL?.cyclos { ("CYCLOS", cyclos) } + else { (PaytoType.xTalerBank.rawValue.uppercased(), targetURL?.xTaler) } + Section { + if let holder = PayTo(target).receiver { + BankSectionRow(title: String(localized: "Account holder:"), + value: holder) + } + if let account { + BankSectionRow(title: String(localized: "\(methodType):", comment: "methodType:"), + value: account) + } + }.talerFont(.body) } case .payment(let paymentTransaction):