Tooluck logoTooluck
SKILL.md

swiftui

Agent skill fromrshankras/claude-code-apple-skills

SwiftUI framework skills — data flow (identity, Observation, state ownership), layout & containers (Layout protocol, lazy-stack performance), AlarmKit, 3D charts, rich text editing, customizable toolbars, and WebKit embedding. Use for SwiftUI state/rendering bugs, custom layouts, scroll performance, or these feature areas.

How to install swiftui

install swiftui
# install the claude-code-apple-skills pack with the skills CLI
npx skills add rshankras/claude-code-apple-skills

# or add only this skill to Claude Code: copy the folder

skills/swiftui/

# into

~/.claude/skills/swiftui/ (all projects)

.claude/skills/swiftui/ (one project)

skills/swiftui/SKILL.md

MITFull file
1# SwiftUI Skills
2
3Focused SwiftUI framework skills — each sub-skill covers one API area in depth.
4
5## When This Skill Activates
6
7Use this skill when the user:
8- Has **state/rendering bugs**: state resets, over-rendering, flashing lists, animation crossfades (data-flow)
9- Is choosing **@State vs @Bindable vs @Environment** or migrating to Observation (data-flow)
10- Builds **custom layouts or containers**, or fights **lazy-stack/scroll performance** (layout)
11- Wants alarms or timers with **AlarmKit** (custom UI, Live Activities, snooze)
12- Is creating **3D data visualizations** with Swift Charts (Chart3D, SurfacePlot)
13- Needs **styled text or rich text editing** (Text, AttributedString, TextEditor)
14- Is implementing or customizing **toolbars** (customizable toolbars, search integration)
15- Wants to **embed web content** (WebView, WebPage, JavaScript interop)
16
17## Available Skills
18
19Paths are relative to THIS file's directory — skills run with cwd set to the
20user's project, so resolve each path from this SKILL.md's own location.
21
22| Skill | Read | Covers |
23|-------|------|--------|
24| data-flow | `data-flow/SKILL.md` | View identity/lifetime/dependencies, Observation, state ownership, body discipline, main-actor contract |
25| layout | `layout/SKILL.md` | Layout protocol, Grid decisions, custom containers, lazy-stack + scrolling performance rules |
26| alarmkit | `alarmkit/SKILL.md` | Alarms and timers with custom UI, Live Activities, snooze (iOS 18+) |
27…

Excerpt shown under the repository's MIT license.

More skills in claude-code-apple-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates