gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 15/36: About with explicit link to taler.net


From: gnunet
Subject: [taler-taler-ios] 15/36: About with explicit link to taler.net
Date: Mon, 13 Nov 2023 21:27:20 +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 819709378ea5778787eefa9842d454181ab7a0f2
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sun Nov 12 13:25:36 2023 +0100

    About with explicit link to taler.net
---
 TalerWallet1/Views/Settings/AboutView.swift | 66 ++++++++++++++++-------------
 1 file changed, 37 insertions(+), 29 deletions(-)

diff --git a/TalerWallet1/Views/Settings/AboutView.swift 
b/TalerWallet1/Views/Settings/AboutView.swift
index 3649414..2ad5d07 100644
--- a/TalerWallet1/Views/Settings/AboutView.swift
+++ b/TalerWallet1/Views/Settings/AboutView.swift
@@ -18,6 +18,7 @@ struct AboutView: View {
     @AppStorage("developerMode") var developerMode: Bool = false
 #endif
     @AppStorage("myListStyle") var myListStyle: MyListStyle = .automatic
+    @AppStorage("iconOnly") var iconOnly: Bool = false
 
     @State private var rotationEnabled = false
 
@@ -31,38 +32,45 @@ struct AboutView: View {
         let walletCore = WalletCore.shared
         Group {
             List {
-//                VStack {
-                    HStack {
-                        Spacer()
-                        RotatingTaler(size: 100, rotationEnabled: 
$rotationEnabled)
-                            .accessibilityHint("Will go to the taler.net 
website when long-pressed.")
-                            .onTapGesture(count: 2) {
-                                rotationEnabled.toggle()
-                            }
-                            .onLongPressGesture(minimumDuration: 0.3) {
-                                
UIApplication.shared.open(URL(string:"https://taler.net";)!, options: [:])
-                            }
-                        Spacer()
-                    }
-                    SettingsItem(name: "App Version", id1: "app") {
-                        Text(verbatim: 
"\(Bundle.main.releaseVersionNumberPretty)")
-                    }
-                    SettingsItem(name: "Wallet Core Version", id1: 
"wallet-core") {
-                        Text(verbatim: "\(walletCore.versionInfo!.version)")
+                HStack {
+                    Spacer()
+                    RotatingTaler(size: 100, rotationEnabled: $rotationEnabled)
+                        .onTapGesture(count: 2) {
+                            rotationEnabled.toggle()
+                        }
+                    Spacer()
+                }
+                SettingsItem(name: "Visit the taler.net website", id1: "web",
+                             description: iconOnly ? nil : String(localized: 
"More info about Gnu Taler in general...")) { }
+                    .accessibilityAddTraits(.isLink)
+                    .accessibilityRemoveTraits(.isStaticText)
+                    .onTapGesture() {
+                        
UIApplication.shared.open(URL(string:"https://taler.net";)!, options: [:])
                     }
+
+                SettingsItem(name: "App Version", id1: "app") {
+                    Text(verbatim: "\(Bundle.main.releaseVersionNumberPretty)")
+                }
+                SettingsItem(name: "Wallet Core Version", id1: "wallet-core") {
+                    Text(verbatim: "\(walletCore.versionInfo?.version ?? 
"unknown")")
+                }
+                if developerMode {
                     SettingsItem(name: "Wallet Core DevMode", id1: "devMode") {
-                        Text(verbatim: "\(walletCore.versionInfo!.devMode ? 
"YES" : "NO")")
-                    }
-                    SettingsItem(name: "Supported Exchange Versions", id1: 
"exchange") {
-                        Text(verbatim: "\(walletCore.versionInfo!.exchange)")
-                    }
-                    SettingsItem(name: "Supported Merchant Versions", id1: 
"merchant") {
-                        Text(verbatim: "\(walletCore.versionInfo!.merchant)")
-                    }
-                    SettingsItem(name: "Used Bank", id1: "bank") {
-                        Text(verbatim: "\(walletCore.versionInfo!.bank)")
+                        let modeStr = if let devMode = 
walletCore.versionInfo?.devMode {
+                            devMode ? "YES" : "NO"
+                        } else { "unknown" }
+                        Text(modeStr)
                     }
-//                } // App version info
+                }
+                SettingsItem(name: "Supported Exchange Versions", id1: 
"exchange") {
+                    Text(verbatim: "\(walletCore.versionInfo?.exchange ?? 
"unknown")")
+                }
+                SettingsItem(name: "Supported Merchant Versions", id1: 
"merchant") {
+                    Text(verbatim: "\(walletCore.versionInfo?.merchant ?? 
"unknown")")
+                }
+                SettingsItem(name: "Used Bank", id1: "bank") {
+                    Text(verbatim: "\(walletCore.versionInfo?.bank ?? 
"unknown")")
+                }
             }
             .id(listID)
             .listStyle(myListStyle.style).anyView

-- 
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]