Display app version in settings #204

This commit is contained in:
Thomas Ricouard 2023-01-20 22:06:57 +01:00
parent 5321b2b8d8
commit cab7116d50

View file

@ -134,6 +134,10 @@ struct SettingsTabs: View {
NavigationLink(destination: SupportAppView()) {
Label("settings.app.support", systemImage: "wand.and.stars")
}
if let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String {
Label("App Version: \(appVersion)", systemImage: "app.badge.checkmark")
}
}
.listRowBackground(theme.primaryBackgroundColor)
}