Swiftui

Prisma-Labs-Dev/apple-skills/skills/swiftui

作者 Prisma-Labs-Dev498626005e65783ebe8570a103b2335cf397768c無授權條款收錄於 2026年10月9日更新於 2026年10月9日

API reference: SwiftUI. Query for views, layouts, navigation, @State/@Binding/@Observable, view modifiers, NavigationStack, iOS 26+ features.

AI 產生的概覽

本機 SwiftUI API 參考,用來查詢檢視、版面配置、導覽、狀態包裝器與修飾符。

功能
這個技能為代理提供一組存放在本機的 Markdown 參考檔案,涵蓋 SwiftUI 的檢視、版面配置、導覽、屬性包裝器與檢視修飾符等主題。代理會在這些檔案中搜尋相關主題,把概觀檔案當成文件路徑索引,並在本機找不到相符內容時,從外部 Markdown 鏡像取得頁面。它產出的是以所引用文件為依據的解答,而不是新的程式碼成品。
適用情境
當問題涉及 SwiftUI API 時使用,例如某個檢視、版面配置、導覽容器、狀態包裝器或修飾符的行為。適合在 iOS 或 Apple 平台開發過程中查閱文件。
執行需求
不附指令碼,只有指示與本機 Markdown 參考檔案。只有在使用選用的 sosumi.ai Markdown 鏡像備援取得時才需要網路存取。不需要憑證或套件。

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):

FileContent
swiftui-overview.md [blocked]Full SwiftUI framework index (907KB)
view-protocol.md [blocked]View protocol and all modifiers (59KB)
state.md [blocked]@State property wrapper
binding.md [blocked]@Binding property wrapper
environment.md [blocked]@Environment property wrapper
observation.md [blocked]@Observable macro (iOS 17+)
navigationstack.md [blocked]NavigationStack (iOS 16+)
navigationsplitview.md [blocked]NavigationSplitView
tabview.md [blocked]TabView
list.md [blocked]List view
canvas.md [blocked]Canvas — immediate-mode drawing (iOS 15+)
graphicscontext.md [blocked]GraphicsContext — drawing API used inside Canvas

Fetching More Docs

  1. Search this skill's local .md files first.
  2. If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or SKILL.md frontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet.
  3. If no installed skill has the page, use the relevant documentation path from swiftui-overview.md with the sosumi.ai Markdown mirror. For example, /documentation/swiftui/button maps to https://sosumi.ai/documentation/swiftui/button.

Common SwiftUI Doc Paths

TopicURL Path
Textswiftui/text
Buttonswiftui/button
Imageswiftui/image
VStackswiftui/vstack
HStackswiftui/hstack
ZStackswiftui/zstack
Formswiftui/form
Sheetswiftui/sheet
Alertswiftui/alert
Pickerswiftui/picker
Toggleswiftui/toggle
Sliderswiftui/slider
ProgressViewswiftui/progressview
AsyncImageswiftui/asyncimage
GeometryReaderswiftui/geometryreader
ScrollViewswiftui/scrollview
LazyVStackswiftui/lazyvstack
LazyHStackswiftui/lazyhstack
NavigationLinkswiftui/navigationlink
ToolbarItemswiftui/toolbaritem
Canvasswiftui/canvas
GraphicsContextswiftui/graphicscontext

Usage Instructions

  1. Check downloaded files first - Grep the local .md files for your topic
  2. Use the overview as an index - Search swiftui-overview.md for documentation paths
  3. Fetch only when needed - If no installed skill has the page, use sosumi.ai with documentation paths from the overview

Example workflow:

bash
# 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

來源與署名

來源:Prisma-Labs-Dev/apple-skills位於skills/swiftui提交4986260

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架