Skip to content

Commit

Permalink
Fix naming on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricS01 committed Oct 18, 2024
1 parent faa7ba0 commit a01b855
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions TPU_Mac.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -497,14 +497,14 @@
CODE_SIGN_ENTITLEMENTS = TPU_Mac/TPU_Mac.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"TPU_Mac/Preview Content\"";
DEVELOPMENT_TEAM = PK36GR28A7;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = "TPU Mac";
INFOPLIST_KEY_CFBundleDisplayName = "TPU Dev";
"INFOPLIST_KEY_CFBundleDisplayName[sdk=iphoneos*]" = "TPU iOS";
"INFOPLIST_KEY_CFBundleDisplayName[sdk=macosx*]" = "TPU Mac";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
Expand Down Expand Up @@ -540,14 +540,14 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = TPU_Mac/TPU_Mac.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"TPU_Mac/Preview Content\"";
DEVELOPMENT_TEAM = PK36GR28A7;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = "TPU Mac";
INFOPLIST_KEY_CFBundleDisplayName = "TPU Swift";
"INFOPLIST_KEY_CFBundleDisplayName[sdk=iphoneos*]" = "TPU iOS";
"INFOPLIST_KEY_CFBundleDisplayName[sdk=macosx*]" = "TPU Mac";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
Expand Down
4 changes: 2 additions & 2 deletions TPU_Mac/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ struct SettingsView: View {
Text("Coming soon")
#else
Text("TPU iOS").font(.system(size: 32, weight: .semibold))
Text("Version " + (Bundle.main.infoDictionary?[kCFBundleVersionKey as String] as? String ?? "") + " (17/10/2024)")
Text("Version " + (Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "") + " (18/10/2024)")
Text("Made by ElectricS01")
Text("[Give it a Star on GitHub](https://github.com/ElectricS01/TPU-Mac)")
#endif
Expand All @@ -272,7 +272,7 @@ struct AboutView: View {
Text("About")
.navigationTitle("About")
Text("TPU Mac").font(.system(size: 32, weight: .semibold))
Text("Version " + (Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "") + " (17/10/2024)")
Text("Version " + (Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "") + " (18/10/2024)")
Text("Made by ElectricS01")
Text("[Give it a Star on GitHub](https://github.com/ElectricS01/TPU-Mac)")
}
Expand Down
2 changes: 1 addition & 1 deletion TPU_Mac/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct HomeView: View {
VStack {
VStack {
Text("Welcome to").navigationTitle("Home")
Text(Bundle.main.infoDictionary?[kCFBundleNameKey as String] as? String ?? "").font(.system(size: 32, weight: .semibold))
Text(Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String ?? "").font(.system(size: 32, weight: .semibold))
}.frame(maxHeight: .infinity)
VStack {
Text("Announcments").font(.system(size: 24, weight: .semibold))
Expand Down

0 comments on commit a01b855

Please sign in to comment.