From 70a7239cfd90b10006df1cb052b15986dd45ec56 Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Mon, 6 Feb 2023 23:53:21 -0500 Subject: [PATCH] Show app version at bottom of ConfigView --- damus/Views/ConfigView.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/damus/Views/ConfigView.swift b/damus/Views/ConfigView.swift index 86429ff4..225d48d7 100644 --- a/damus/Views/ConfigView.swift +++ b/damus/Views/ConfigView.swift @@ -200,6 +200,12 @@ struct ConfigView: View { } } } + + let bundleShortVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String + let bundleVersion = Bundle.main.infoDictionary?["CFBundleVersion"] as! String + Section(NSLocalizedString("Version", comment: "Section title for displaying the version number of the Damus app.")) { + Text("\(bundleShortVersion) (\(bundleVersion))", comment: "Text indicating which version of the Damus app is running. Should typically not need to be translated.") + } } } .onChange(of: default_zap_amount) { val in