commit 07624076e60d1accca424a03663c8c0490d1a870
parent fba7fcf6cc4b2cbab2d11d430de13288803ab57f
Author: Marc Stibane <marc@taler.net>
Date: Sat, 21 Oct 2023 21:02:00 +0200
Call AboutView
Diffstat:
1 file changed, 7 insertions(+), 21 deletions(-)
diff --git a/TalerWallet1/Views/Settings/SettingsView.swift b/TalerWallet1/Views/Settings/SettingsView.swift
@@ -93,6 +93,13 @@ struct SettingsView: View {
let walletCore = WalletCore.shared
Group {
List {
+ let aboutStr = String(localized: "About GNU Taler")
+ NavigationLink { // whole row like in a tableView
+ LazyView { AboutView(stack: stack.push(), navTitle: aboutStr) }
+ } label: {
+ SettingsItem(name: aboutStr,
+ description: String(localized: "More info about this app...")) {}
+ }
if controller.hapticCapability.supportsHaptics {
SettingsToggle(name: String(localized: "Haptics"), value: $useHaptics,
description: String(localized: "Vibration Feedback"))
@@ -235,27 +242,6 @@ struct SettingsView: View {
}
}
}
-
- VStack {
- SettingsItem(name: "App Version") {
- Text(verbatim: "\(Bundle.main.releaseVersionNumberPretty)")
- }
- SettingsItem(name: "Wallet Core Version") {
- Text(verbatim: "\(walletCore.versionInfo!.version)")
- }
- SettingsItem(name: "Wallet Core DevMode") {
- Text(verbatim: "\(walletCore.versionInfo!.devMode ? "YES" : "NO")")
- }
- SettingsItem(name: "Supported Exchange Versions") {
- Text(verbatim: "\(walletCore.versionInfo!.exchange)")
- }
- SettingsItem(name: "Supported Merchant Versions") {
- Text(verbatim: "\(walletCore.versionInfo!.merchant)")
- }
- SettingsItem(name: "Used Bank") {
- Text(verbatim: "\(walletCore.versionInfo!.bank)")
- }
- } // App version info
}
.id(listID)
.listStyle(myListStyle.style).anyView