gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 36/69: b-i-withdrawal hint


From: gnunet
Subject: [taler-taler-ios] 36/69: b-i-withdrawal hint
Date: Fri, 19 Jan 2024 09:02:09 +0100

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit a436c14ad40dee182b35448409faf763de2c3bda
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Jan 4 17:59:28 2024 +0100

    b-i-withdrawal hint
---
 TalerWallet1/Views/Exchange/ExchangeSectionView.swift | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/TalerWallet1/Views/Exchange/ExchangeSectionView.swift 
b/TalerWallet1/Views/Exchange/ExchangeSectionView.swift
index b3fc63e..80a8e9a 100644
--- 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)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]