Swiftui

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

by Prisma-Labs-Dev498626005e65783ebe8570a103b2335cf397768cNo licenseListed Oct 9, 2026Updated Oct 9, 2026

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

Instructions onlySoftware Development
AI-generated overview

Local SwiftUI API reference for looking up views, layouts, navigation, state wrappers and modifiers.

What it does
This skill gives an agent a set of locally stored Markdown reference files covering SwiftUI topics such as views, layouts, navigation, property wrappers and view modifiers. The agent greps those files for a topic, uses the overview file as an index of documentation paths, and can fetch a page from an external Markdown mirror when nothing local matches. It produces answers grounded in the referenced documentation rather than new code artifacts.
When to use it
Use it when a question concerns SwiftUI APIs, for example how a view, layout, navigation container, state wrapper or modifier behaves. It suits documentation lookup during iOS or Apple-platform development work.
Requirements
Ships no scripts; it is instructions plus local Markdown reference files. Network access is needed only for the optional fallback fetch from the sosumi.ai Markdown mirror. No credentials or packages are required.

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

Source and attribution

Source:Prisma-Labs-Dev/apple-skillsinskills/swiftuiat commit4986260

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal