Skip to content

Commit

Permalink
更改位置
Browse files Browse the repository at this point in the history
  • Loading branch information
ming1016 committed Aug 13, 2024
1 parent d8364ac commit c42b0e8
Show file tree
Hide file tree
Showing 224 changed files with 30 additions and 16 deletions.
37 changes: 22 additions & 15 deletions SwiftPamphletApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1415,20 +1415,8 @@
08AEAEE7277EDD5D00B969E2 /* Guide */ = {
isa = PBXGroup;
children = (
08FC82342C6AE2890083C91F /* appstore */,
08448F44279E7E0300B61353 /* Swift语法 */,
08448F67279EB40D00B61353 /* 基础库 */,
08448F47279E7E3A00B61353 /* SwiftUI */,
08659BCB2BE9A3E6009B7C00 /* SwiftData */,
08EF35CB2BECF1690098E2D4 /* 小组件 */,
08026C312869990100792EF1 /* 系统能力 */,
08448F7C279EB6F700B61353 /* 工程模式 */,
08EF35CA2BECF0B70098E2D4 /* 多线程 */,
08448F8A279EB82D00B61353 /* 动画 */,
08448F87279EB7EC00B61353 /* 网络 */,
08026C332869999800792EF1 /* 性能和构建 */,
08448F8D279EB86500B61353 /* 安全 */,
08448F4F279E8E9F00B61353 /* macOS */,
08448F5C279EB19700B61353 /* 三方库使用 */,
0844902F279ECF7D00B61353 /* 1.md */,
);
path = Guide;
Expand Down Expand Up @@ -1518,8 +1506,7 @@
08449016279ECD1400B61353 /* Swift Concurrency */,
08448F48279E7E4100B61353 /* Combine */,
);
name = "多线程";
path = "../多线程";
path = "多线程";
sourceTree = "<group>";
};
08EF35CB2BECF1690098E2D4 /* 小组件 */ = {
Expand Down Expand Up @@ -1595,6 +1582,26 @@
path = Category;
sourceTree = "<group>";
};
08FC82342C6AE2890083C91F /* appstore */ = {
isa = PBXGroup;
children = (
08448F67279EB40D00B61353 /* 基础库 */,
08448F47279E7E3A00B61353 /* SwiftUI */,
08659BCB2BE9A3E6009B7C00 /* SwiftData */,
08EF35CB2BECF1690098E2D4 /* 小组件 */,
08026C312869990100792EF1 /* 系统能力 */,
08448F7C279EB6F700B61353 /* 工程模式 */,
08EF35CA2BECF0B70098E2D4 /* 多线程 */,
08448F8A279EB82D00B61353 /* 动画 */,
08448F87279EB7EC00B61353 /* 网络 */,
08026C332869999800792EF1 /* 性能和构建 */,
08448F8D279EB86500B61353 /* 安全 */,
08448F4F279E8E9F00B61353 /* macOS */,
08448F5C279EB19700B61353 /* 三方库使用 */,
);
path = appstore;
sourceTree = "<group>";
};
3AE0D5962BAB09AB00D6D925 /* Developer */ = {
isa = PBXGroup;
children = (
Expand Down
3 changes: 2 additions & 1 deletion SwiftPamphletApp/Guide/View/GuideListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ final class GuideListModel {
L(t: "闭包"),
L(t: "函数"),
L(t: "访问控制"),
L(t: "Regex")
L(t: "Regex"),
L(t: "Regex111")
]),
L(t: "基础类型", sub: [
L(t: "数字"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public struct SMFile {
public static func loadBundleData(_ filename: String) -> Data {
let data: Data
guard let file = Bundle.main.url(forResource: filename, withExtension: nil) else {
let str = "<p>此部分为 App Store 版本内容,请到<a href=\"https://apps.apple.com/cn/app/%E6%88%B4%E9%93%AD%E7%9A%84%E5%BC%80%E5%8F%91%E5%B0%8F%E5%86%8C%E5%AD%90/id1609702529?mt=12\">应用商店下载(98元)</a></p>"
if let data = str.data(using: .utf8) {
return data
} else {
print("Failed to convert string to data")
}
return Data()
// fatalError("Couldn't find \(filename) in main bundle.")
}
Expand Down

0 comments on commit c42b0e8

Please sign in to comment.