Shortened variables
This commit is contained in:
parent
9ef5101d70
commit
2a89a534fc
|
@ -14,3 +14,7 @@ struct ThreadedApp: App {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extension AppInfo {
|
||||||
|
static var appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown"
|
||||||
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ struct AboutView: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
List {
|
List {
|
||||||
Section(footer: Text("about.version-\(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown")")) {
|
Section(footer: Text("about.version-\(AppInfo.appVersion)")) {
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
aboutApp
|
aboutApp
|
||||||
} label: {
|
} label: {
|
||||||
|
|
Loading…
Reference in New Issue