Skip to content

Commit

Permalink
Revert "Revert "feat: show build numbers for engine and app at footer…
Browse files Browse the repository at this point in the history
… in debug builds""

This reverts commit 54aeb80.
  • Loading branch information
blackxfiied committed Jun 28, 2024
1 parent 18e933b commit acd4d99
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions Mythic/Views/Navigation/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,22 @@ struct MainView: View {
.frame(maxHeight: 40)
}

if let displayName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String,
let shortVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String,
let bundleVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String {
Text("\(displayName) \(shortVersion) (\(bundleVersion))")
.font(.footnote)
.foregroundStyle(.placeholder)
.padding(.bottom)
#if DEBUG
VStack {
if let displayName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String,
let shortVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String,
let bundleVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String {
Text("\(displayName) \(shortVersion) (\(bundleVersion))")
}

if let version = Engine.version {
Text("Mythic Engine \(version)")
}
}
.font(.footnote)
.foregroundStyle(.placeholder)
.padding(.bottom)
#endif
}, detail: {
HomeView()
}
Expand Down

0 comments on commit acd4d99

Please sign in to comment.