diff --git a/SwiftPamphletApp.xcodeproj/project.pbxproj b/SwiftPamphletApp.xcodeproj/project.pbxproj index 4fb8082f..6fb51f8e 100644 --- a/SwiftPamphletApp.xcodeproj/project.pbxproj +++ b/SwiftPamphletApp.xcodeproj/project.pbxproj @@ -2155,7 +2155,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 12; + CURRENT_PROJECT_VERSION = 13; DEVELOPMENT_ASSET_PATHS = "\"SwiftPamphletApp/Preview Content\""; DEVELOPMENT_TEAM = 962Z8PV35L; ENABLE_HARDENED_RUNTIME = YES; @@ -2169,7 +2169,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 14.0; - MARKETING_VERSION = 6.4.7; + MARKETING_VERSION = 6.4.8; OTHER_LDFLAGS = ( "-Xlinker", "-interposable", @@ -2198,7 +2198,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 12; + CURRENT_PROJECT_VERSION = 13; DEVELOPMENT_ASSET_PATHS = "\"SwiftPamphletApp/Preview Content\""; DEVELOPMENT_TEAM = 962Z8PV35L; ENABLE_HARDENED_RUNTIME = YES; @@ -2212,7 +2212,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 14.0; - MARKETING_VERSION = 6.4.7; + MARKETING_VERSION = 6.4.8; PRODUCT_BUNDLE_IDENTIFIER = com.starming.SwiftPamphletAppByMing; PRODUCT_NAME = "戴铭的开发小册子"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/SwiftPamphletApp/Guide/View/GuideListView.swift b/SwiftPamphletApp/Guide/View/GuideListView.swift index 22dfce33..9376d139 100644 --- a/SwiftPamphletApp/Guide/View/GuideListView.swift +++ b/SwiftPamphletApp/Guide/View/GuideListView.swift @@ -119,9 +119,13 @@ final class GuideListModel { func buildMDContent() { var md = "" for one in lModel { - if one.t == "SwiftUI" { + if one.t == "动画" { if let oneSub = one.sub { for two in oneSub { + let str = SMFile.loadBundleString("\(two.t)(ap).md") + let strformat = "## \(two.t)\n" + str.replacingOccurrences(of: "## ", with: "### ") + md += strformat + if two.t == "数据集合组件" { if let twoSub = two.sub { for three in twoSub { @@ -142,16 +146,11 @@ final class GuideListModel { } } } - - -// let str = SMFile.loadBundleString("\(two.t)(ap).md") -// let strformat = "## \(two.t)\n" + str.replacingOccurrences(of: "## ", with: "### ") -// md += strformat - } - } + } // end for two + } // end if let oneSub - } - } + } // end if one.t + } // end for one SMFile.writeToDownload(fileName: "read.md", content: md) }