damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 70a7239cfd90b10006df1cb052b15986dd45ec56
parent 0e8363289611214df4a41c0612cfc6033818b865
Author: Terry Yiu <963907+tyiu@users.noreply.github.com>
Date:   Mon,  6 Feb 2023 23:53:21 -0500

Show app version at bottom of ConfigView

Diffstat:
Mdamus/Views/ConfigView.swift | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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