Show app version at bottom of ConfigView

This commit is contained in:
2023-02-06 23:53:21 -05:00
committed by William Casarin
parent 0e83632896
commit 70a7239cfd

View File

@@ -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