Skip to content

Commit

Permalink
feat: Increase convenient access to Apple's common websites
Browse files Browse the repository at this point in the history
  • Loading branch information
iHTCboy committed Apr 3, 2023
1 parent 8ae348d commit 79e2810
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ iAppStore 是一款使用 SwiftUI 打造的苹果商店工具类 App。
3. [] 筛选国家地区的条件按洲显示或者支持搜索
4. [x] 筛选条件可以持久化保存(2022-01-09)
5. [x] 高清商店图片显示和下载(2022-01-09)
6. [] 应用订阅状态持久化
6. [x] 应用订阅状态持久化(2023-02-13)
7. [] 多语言的支持(英文)

### FAQ
Expand Down
10 changes: 6 additions & 4 deletions iAppStore.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,12 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2022.01.16;
CURRENT_PROJECT_VERSION = 2023.04.03;
DEVELOPMENT_ASSET_PATHS = "\"iAppStore/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = iAppStore;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "Save Image";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
Expand All @@ -663,7 +664,7 @@
"@executable_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.2.0;
MARKETING_VERSION = 1.3.0;
PRODUCT_BUNDLE_IDENTIFIER = com.37iOS.iAppStore;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -685,11 +686,12 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2022.01.16;
CURRENT_PROJECT_VERSION = 2023.04.03;
DEVELOPMENT_ASSET_PATHS = "\"iAppStore/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = iAppStore;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "Save Image";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
Expand All @@ -703,7 +705,7 @@
"@executable_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.2.0;
MARKETING_VERSION = 1.3.0;
PRODUCT_BUNDLE_IDENTIFIER = com.37iOS.iAppStore;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
85 changes: 81 additions & 4 deletions iAppStore/components/setting/SettingHome.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ struct LinkString: Identifiable {
struct SettingHome: View {

private let items = ["切换图标", "AppStore", "蝉大师", "点点数据", "七麦数据"]
private let apples = ["Apple 中国大陆官网", "Apple Newsroom", "App Store Connect", "Apple Developer", "Apple News and Updates", "Apple 新闻及更新", "App Store Review Guidelines", "App Store 审核指南", "Apple Services Status - US", "Apple Services Status - CN", "Apple System Status", "Apple 安全性更新", "iOS & iPadOS Release Notes", "Xcode Release", "iOS & iPadOS 普及率", "Software Downloads", "App Store Connect 帮助", "iOS 16 更新", "iPadOS 16 更新", "macOS 13 更新", "识别你的 iPhone 机型", "识别你的 iPad 机型", "识别 iPod 机型", "识别 MacBook 机型", "识别 MacBook Air 机型", "识别 MacBook Pro 机型", "识别 Mac mini 机型", "识别 Mac Studio 机型", "识别 Mac Pro 机型", "识别你的 iMac 机型", "识别你的 Apple Watch", "识别你的 AirPods", "识别你的 HomePod", "识别你的 Apple TV"]

@State private var linkPage: LinkString? = nil

Expand All @@ -38,6 +39,13 @@ struct SettingHome: View {
SettingItemCell(linkPage: $linkPage, title: "GitHub 开源", index: items.count)
SettingItemCell(linkPage: $linkPage, title: "37手游iOS技术运营团队", index: items.count + 1)
}

Section(header: Text("苹果服务")) {
ForEach(apples, id: \.self) { title in
let index = items.count + 2 + apples.firstIndex(of: title)!
SettingItemCell(linkPage: $linkPage, title: title, index: index)
}
}
}
}
.navigationBarTitle("设置")
Expand All @@ -62,11 +70,11 @@ struct SettingItemCell: View {

if index == 0 {
DisclosureGroup(title, isExpanded: $iconViewIsExpanded) {
ForEach(0..<icons.count){ index in
ForEach(0..<icons.count, id: \.self) { index in
let type = icons[index]
VStack{
HStack {
Image(type.count > 0 ? type + "_icon" : "iAppStore_icon")
Image(type.count > 0 ? type + "_icon" : "iAppStroe_icon")
.resizable()
.renderingMode(.original)
.frame(width: 65, height: 65)
Expand All @@ -81,7 +89,6 @@ struct SettingItemCell: View {
Image(systemName: "chevron.right").imageScale(.small).foregroundColor(Color.tsmg_placeholderText).padding(.trailing, 10)
}
}
.background(Color.tsmg_systemBackground)
.onTapGesture {

UIApplication.shared.setAlternateIconName(type.count > 0 ? type : nil)
Expand All @@ -91,7 +98,9 @@ struct SettingItemCell: View {
}
}
}
}.accentColor(Color.tsmg_placeholderText)
}
.padding([.top, .bottom], 10)
.accentColor(Color.tsmg_placeholderText)
} else {

HStack {
Expand All @@ -112,6 +121,74 @@ struct SettingItemCell: View {
linkPage = LinkString(url: "https://github.com/37iOS/iAppStore-SwiftUI")
case 6:
linkPage = LinkString(url: "https://juejin.cn/user/1002387318511214")
case 7:
linkPage = LinkString(url: "https://www.apple.com.cn")
case 8:
linkPage = LinkString(url: "https://www.apple.com.cn/newsroom/")
case 9:
linkPage = LinkString(url: "https://appstoreconnect.apple.com")
case 10:
linkPage = LinkString(url: "https://developer.apple.com")
case 11:
linkPage = LinkString(url: "https://developer.apple.com/news/")
case 12:
linkPage = LinkString(url: "https://developer.apple.com/cn/news/")
case 13:
linkPage = LinkString(url: "https://developer.apple.com/app-store/review/guidelines/")
case 14:
linkPage = LinkString(url: "https://developer.apple.com/cn/app-store/review/guidelines/")
case 15:
linkPage = LinkString(url: "https://www.apple.com/support/systemstatus/")
case 16:
linkPage = LinkString(url: "https://www.apple.com/cn/support/systemstatus/")
case 17:
linkPage = LinkString(url: "https://developer.apple.com/system-status/")
case 18:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT201222")
case 19:
linkPage = LinkString(url: "https://developer.apple.com/documentation/ios-ipados-release-notes")
case 20:
linkPage = LinkString(url: "https://developer.apple.com/cn/support/xcode/")
case 21:
linkPage = LinkString(url: "https://developer.apple.com/cn/support/app-store/")
case 22:
linkPage = LinkString(url: "https://developer.apple.com/download/")
case 23:
linkPage = LinkString(url: "https://developer.apple.com/cn/help/app-store-connect/")
case 24:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT213407")
case 25:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT213408")
case 26:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT213268")
case 27:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT201296")
case 28:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT201471")
case 29:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT204217")
case 30:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT201608")
case 31:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT201862")
case 32:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT201300")
case 33:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT201894")
case 34:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT213073")
case 35:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT202888")
case 36:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT201634")
case 37:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT204507")
case 38:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT209580")
case 39:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT211109")
case 40:
linkPage = LinkString(url: "https://support.apple.com/zh-cn/HT200008")
default: break
}
}) {
Expand Down

0 comments on commit 79e2810

Please sign in to comment.