commit a436c14ad40dee182b35448409faf763de2c3bda
parent ab68cbf3dfd80e09da00cbcdee82fae82f805479
Author: Marc Stibane <marc@taler.net>
Date: Thu, 4 Jan 2024 17:59:28 +0100
b-i-withdrawal hint
Diffstat:
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/Exchange/ExchangeSectionView.swift b/TalerWallet1/Views/Exchange/ExchangeSectionView.swift
@@ -13,6 +13,7 @@ struct ExchangeSectionView: View {
let currency: String // this is the currency to be used
let exchanges: [Exchange]
@Binding var amountToTransfer: Amount // does still have the wrong currency
+ @AppStorage("iconOnly") var iconOnly: Bool = false
var body: some View {
#if PRINT_CHANGES
@@ -25,6 +26,21 @@ struct ExchangeSectionView: View {
exchange: exchange,
currency: currency, // TODO: (balance.available) amount.isZero to disable Deposit-button
amountToTransfer: $amountToTransfer) // does still have the wrong currency
+ .listRowSeparator(.hidden)
+ }
+ if "KUDOS" == currency {
+ let bankingHint = String(localized: "Since the demo bank supports the Taler integration, you can start a withdrawal directly on the")
+ let linkTitle = String(localized: "LinkTitle_DEMOBANK", defaultValue: "Demo Bank Website")
+ VStack {
+ if !iconOnly {
+ Text(bankingHint)
+ }
+ Link(linkTitle, destination: URL(string: DEMOBANK)!)
+ .buttonStyle(TalerButtonStyle(type: .bordered, narrow: false, aligned: .center))
+ }
+ .accessibilityElement(children: .combine)
+ .accessibilityLabel(bankingHint + " " + linkTitle)
+ .padding(.top)
}
} header: {
BarGraphHeader(stack: stack.push(), currency: currency)