- 主文件夹包含一个 "Sources" 文件夹,其中有:
- 用于主文件的 "App"
- 分为 "Home" 和 "Profile" 部分及其 ViewModel 的 "Views"
- 用于可重用组件和修饰符的 "Shared"
- "Models" 用于数据模型
- "ViewModels" 用于视图特定逻辑
- "Services" 包含:
- "Network" 用于网络请求
- "Persistence" 用于数据存储
- "Utilities" 用于扩展、常量和辅助工具
- "Resources" 文件夹存放:
- "Assets" 用于图片和颜色
- "Localization" 用于本地化字符串
- "Fonts" 用于自定义字体
- "Tests" 文件夹包括:
- "UnitTests" 用于单元测试
- "UITests" 用于 UI 测试
Swiftui Guidelines Swiftui Project Structure Rules
Use when working with SwiftUI — project structure, MVVM architecture, folder organization
Swiftui Guidelines Swiftui Project Structure Rules by liaosw97 · a66a911
npx skillmds@latest add liaosw97/swiftui-guidelines-swiftui-project-structure-rules File contents
---name: swiftui-guidelines-swiftui-project-structure-rulesdescription: Use when working with SwiftUI — project structure, MVVM architecture, folder organization---- 主文件夹包含一个 "Sources" 文件夹,其中有: - 用于主文件的 "App" - 分为 "Home" 和 "Profile" 部分及其 ViewModel 的 "Views" - 用于可重用组件和修饰符的 "Shared"- "Models" 用于数据模型- "ViewModels" 用于视图特定逻辑- "Services" 包含: - "Network" 用于网络请求 - "Persistence" 用于数据存储- "Utilities" 用于扩展、常量和辅助工具- "Resources" 文件夹存放: - "Assets" 用于图片和颜色 - "Localization" 用于本地化字符串 - "Fonts" 用于自定义字体- "Tests" 文件夹包括: - "UnitTests" 用于单元测试 - "UITests" 用于 UI 测试
liaosw97/awesome-rules-skills/tree/main/plugins/swiftui/skills/swiftui-guidelines-swiftui-project-structure-rules commit a66a91104a
Frequently asked questions
Run npx skillmds@latest add liaosw97/swiftui-guidelines-swiftui-project-structure-rules in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Use when working with SwiftUI — project structure, MVVM architecture, folder organization It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
liaosw97 (@liaosw97) published this skill. Their other Agent Skills are listed on their SkillMD profile.