multistore
Razmig Sarkissian 1 year ago
parent 4def379242
commit cc5a51e5c3
  1. 4
      PadelClub.xcodeproj/project.pbxproj
  2. 7
      PadelClub/PadelClubApp.swift
  3. 4
      PadelClub/Views/Navigation/Toolbox/ToolboxView.swift

@ -1935,7 +1935,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 27;
CURRENT_PROJECT_VERSION = 28;
DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\"";
DEVELOPMENT_TEAM = BQ3Y44M3Q6;
@ -1973,7 +1973,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 27;
CURRENT_PROJECT_VERSION = 28;
DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\"";
DEVELOPMENT_TEAM = BQ3Y44M3Q6;

@ -15,6 +15,13 @@ struct PadelClubApp: App {
@State private var navigationViewModel = NavigationViewModel()
@StateObject var networkMonitor: NetworkMonitor = NetworkMonitor()
static var appVersion: String {
let dictionary = Bundle.main.infoDictionary!
let version = dictionary["CFBundleShortVersionString"] as! String
let build = dictionary["CFBundleVersion"] as! String
return "\(version) (\(build))"
}
var body: some Scene {
WindowGroup {
MainView()

@ -122,6 +122,10 @@ struct ToolboxView: View {
Section {
Link("Accéder au guide de la compétition", destination: URLs.padelRules.url)
}
Section {
Text("Version de l'application").badge(PadelClubApp.appVersion)
}
}
.navigationTitle(TabDestination.toolbox.title)
}

Loading…
Cancel
Save