swiftui
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSwiftUI Reference
SwiftUI参考文档
This skill provides access to SwiftUI documentation via downloaded reference files.
本技能可通过已下载的参考文件访问SwiftUI文档。
Downloaded Reference Files
已下载的参考文件
The following Apple documentation pages are available locally (grep-friendly):
| File | Content |
|---|---|
| swiftui-overview.md | Full SwiftUI framework index (907KB) |
| view-protocol.md | View protocol and all modifiers (59KB) |
| state.md | @State property wrapper |
| binding.md | @Binding property wrapper |
| environment.md | @Environment property wrapper |
| observation.md | @Observable macro (iOS 17+) |
| navigationstack.md | NavigationStack (iOS 16+) |
| navigationsplitview.md | NavigationSplitView |
| tabview.md | TabView |
| list.md | List view |
| canvas.md | Canvas — immediate-mode drawing (iOS 15+) |
| graphicscontext.md | GraphicsContext — drawing API used inside Canvas |
以下Apple文档页面已本地存储(支持grep检索):
| 文件 | 内容 |
|---|---|
| swiftui-overview.md | 完整SwiftUI框架索引(907KB) |
| view-protocol.md | View协议及所有修饰符(59KB) |
| state.md | @State属性包装器 |
| binding.md | @Binding属性包装器 |
| environment.md | @Environment属性包装器 |
| observation.md | @Observable宏(iOS 17+) |
| navigationstack.md | NavigationStack(iOS 16+) |
| navigationsplitview.md | NavigationSplitView |
| tabview.md | TabView |
| list.md | List视图 |
| canvas.md | Canvas — 即时模式绘图(iOS 15+) |
| graphicscontext.md | GraphicsContext — Canvas内部使用的绘图API |
Fetching More Docs
获取更多文档
- Search this skill's local files first.
.md - If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or frontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet.
SKILL.md - If no installed skill has the page, use the relevant documentation path from with the
swiftui-overview.mdMarkdown mirror. For example,sosumi.aimaps to/documentation/swiftui/button.https://sosumi.ai/documentation/swiftui/button
- 优先检索本技能的本地文件。
.md - 如果所需主题不在本地,可查看已安装的其他Apple技能的名称、描述或前置信息,然后检索它们的本地文件。这种方式比从互联网获取新文档更快,且占用上下文更少。
SKILL.md - 如果没有已安装的技能包含该页面,可使用中的相关文档路径,通过
swiftui-overview.md的Markdown镜像获取。例如,sosumi.ai对应/documentation/swiftui/button。https://sosumi.ai/documentation/swiftui/button
Common SwiftUI Doc Paths
常见SwiftUI文档路径
| Topic | URL Path |
|---|---|
| Text | |
| Button | |
| Image | |
| VStack | |
| HStack | |
| ZStack | |
| Form | |
| Sheet | |
| Alert | |
| Picker | |
| Toggle | |
| Slider | |
| ProgressView | |
| AsyncImage | |
| GeometryReader | |
| ScrollView | |
| LazyVStack | |
| LazyHStack | |
| NavigationLink | |
| ToolbarItem | |
| Canvas | |
| GraphicsContext | |
| 主题 | URL路径 |
|---|---|
| Text | |
| Button | |
| Image | |
| VStack | |
| HStack | |
| ZStack | |
| Form | |
| Sheet | |
| Alert | |
| Picker | |
| Toggle | |
| Slider | |
| ProgressView | |
| AsyncImage | |
| GeometryReader | |
| ScrollView | |
| LazyVStack | |
| LazyHStack | |
| NavigationLink | |
| ToolbarItem | |
| Canvas | |
| GraphicsContext | |
Usage Instructions
使用说明
- Check downloaded files first - Grep the local files for your topic
.md - Use the overview as an index - Search for documentation paths
swiftui-overview.md - Fetch only when needed - If no installed skill has the page, use with documentation paths from the overview
sosumi.ai
Example workflow:
bash
undefined- 优先检查已下载文件 - 在本地文件中检索所需主题
.md - 将概览作为索引使用 - 在中搜索文档路径
swiftui-overview.md - 仅在必要时获取 - 如果没有已安装的技能包含该页面,使用概览中的文档路径通过获取
sosumi.ai
示例流程:
bash
undefinedLooking for info on modifiers?
Looking for info on modifiers?
grep -i "padding" view-protocol.md
grep -i "padding" view-protocol.md
Need full Text documentation? Check the local file first.
Need full Text documentation? Check the local file first.
grep -i "font" text.md
undefinedgrep -i "font" text.md
undefined