diff options
author | Marc Stibane <marc@taler.net> | 2024-02-04 14:58:29 +0100 |
---|---|---|
committer | Marc Stibane <marc@taler.net> | 2024-02-04 14:58:29 +0100 |
commit | a96b0f3b0bbf46cead8cba8201b8a0e3ddb93594 (patch) | |
tree | 3ef5d6077cbcb006f9075e347cea8a965eff07a3 | |
parent | ed13c1a28ab03969e1cca22cc9ffe9a7e007f639 (diff) | |
download | taler-ios-a96b0f3b0bbf46cead8cba8201b8a0e3ddb93594.tar.gz taler-ios-a96b0f3b0bbf46cead8cba8201b8a0e3ddb93594.tar.bz2 taler-ios-a96b0f3b0bbf46cead8cba8201b8a0e3ddb93594.zip |
githash 7 chars
-rw-r--r-- | TalerWallet1/Views/Settings/AboutView.swift | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/TalerWallet1/Views/Settings/AboutView.swift b/TalerWallet1/Views/Settings/AboutView.swift index 5ccdb27..eb7d8a7 100644 --- a/TalerWallet1/Views/Settings/AboutView.swift +++ b/TalerWallet1/Views/Settings/AboutView.swift @@ -52,7 +52,12 @@ struct AboutView: View { Group { if showGitHash { SettingsItem(name: "Wallet-Core Git", id1: "wallet-coreG") { - Text(verbatim: "\(walletCore.versionInfo?.implementationGitHash ?? "unknown")") + if let gitHash = walletCore.versionInfo?.implementationGitHash { + let index = gitHash.index(gitHash.startIndex, offsetBy: 7) + Text(gitHash[..<index]) + } else { + Text(verbatim: "unknown") + } } } else { SettingsItem(name: "Wallet-Core Version", id1: "wallet-coreV") { |