aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Stibane <marc@taler.net>2023-10-21 21:02:00 +0200
committerMarc Stibane <marc@taler.net>2023-10-21 21:03:16 +0200
commit07624076e60d1accca424a03663c8c0490d1a870 (patch)
tree69acc5d00a874305dd692fd3326fff4a2fe3a0fc
parentfba7fcf6cc4b2cbab2d11d430de13288803ab57f (diff)
downloadtaler-ios-07624076e60d1accca424a03663c8c0490d1a870.tar.gz
taler-ios-07624076e60d1accca424a03663c8c0490d1a870.tar.bz2
taler-ios-07624076e60d1accca424a03663c8c0490d1a870.zip
Call AboutView
-rw-r--r--TalerWallet1/Views/Settings/SettingsView.swift28
1 files changed, 7 insertions, 21 deletions
diff --git a/TalerWallet1/Views/Settings/SettingsView.swift b/TalerWallet1/Views/Settings/SettingsView.swift
index 37a9b48..01b1801 100644
--- 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