Skip to content

Commit

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

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

#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)")
}
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)
}
.font(.footnote)
.foregroundStyle(.placeholder)
.padding(.bottom)
#endif
}, detail: {
HomeView()
}
Expand Down

0 comments on commit 1b1ad37

Please sign in to comment.