Agent Skills
› Prisma-Labs-Dev/apple-skills
› swiftui
swiftui
GitHub提供 SwiftUI 本地文档参考,支持视图、布局、状态管理及导航等查询。优先检索本地文件,必要时通过镜像获取补充内容。
Trigger Scenarios
查询 SwiftUI API 或组件用法
查找 @State/@Binding 等属性包装器说明
了解 NavigationStack 或 Canvas 绘图细节
Install
npx skills add Prisma-Labs-Dev/apple-skills --skill swiftui -g -y
SKILL.md
Frontmatter
{
"name": "swiftui",
"agent": "Explore",
"context": "fork",
"description": "API reference: SwiftUI. Query for views, layouts, navigation, @State\/@Binding\/@Observable, view modifiers, NavigationStack, iOS 26+ features.",
"user-invocable": true
}
SwiftUI Reference
This skill provides access to SwiftUI documentation via downloaded reference files.
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 |
Fetching More Docs
- Search this skill's local
.mdfiles first. - If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or
SKILL.mdfrontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet. - If no installed skill has the page, use the relevant documentation path from
swiftui-overview.mdwith thesosumi.aiMarkdown mirror. For example,/documentation/swiftui/buttonmaps tohttps://sosumi.ai/documentation/swiftui/button.
Common SwiftUI Doc Paths
| Topic | URL Path |
|---|---|
| Text | swiftui/text |
| Button | swiftui/button |
| Image | swiftui/image |
| VStack | swiftui/vstack |
| HStack | swiftui/hstack |
| ZStack | swiftui/zstack |
| Form | swiftui/form |
| Sheet | swiftui/sheet |
| Alert | swiftui/alert |
| Picker | swiftui/picker |
| Toggle | swiftui/toggle |
| Slider | swiftui/slider |
| ProgressView | swiftui/progressview |
| AsyncImage | swiftui/asyncimage |
| GeometryReader | swiftui/geometryreader |
| ScrollView | swiftui/scrollview |
| LazyVStack | swiftui/lazyvstack |
| LazyHStack | swiftui/lazyhstack |
| NavigationLink | swiftui/navigationlink |
| ToolbarItem | swiftui/toolbaritem |
| Canvas | swiftui/canvas |
| GraphicsContext | swiftui/graphicscontext |
Usage Instructions
- Check downloaded files first - Grep the local
.mdfiles for your topic - Use the overview as an index - Search
swiftui-overview.mdfor documentation paths - Fetch only when needed - If no installed skill has the page, use
sosumi.aiwith documentation paths from the overview
Example workflow:
# Looking for info on modifiers?
grep -i "padding" view-protocol.md
# Need full Text documentation? Check the local file first.
grep -i "font" text.md
Sources
Version History
- a76633b Current 2026-07-25 07:01


