# swiftui-expert-skill

> Claude/Codex skill by [@avdlee](https://omgskills.com/library/avdlee/index.md) · 3.7k stars · Updated 2026-10-06

Use when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state and \`@Observable\` data flow, view composition, resizable layouts, safe areas, display scale, performance, lists, environment, localization, animation, Liquid Glass, and API migration. Also use for iPhone Duo, foldable, or large-display layouts (\`NavigationSplitView\` on large displays, iPhone tab sidebar, two-column reflow, foldable grids, \`ArrangementView\`, \`ReservedRegion\`), hinge effects, vertical bars, \`@State\` initialization or synthesized-property diagnostics, \`@ContentBuilder\` ambiguity, \`reorderable\` drag/drop, custom \`AsyncImage\` \`URLSession\`, swipe actions outside List, item-bound \`alert\`/\`confirmationDialog\`, \`ToolbarOverflowMenu\`, \`AnimatableValues\`, Document APIs (\`Document\`/\`DocumentReader\`), and Instruments \`.trace\` capture or analysis.

## Install

```sh
git clone https://github.com/AvdLee/SwiftUI-Agent-Skill /tmp/SwiftUI-Agent-Skill && ln -s /tmp/SwiftUI-Agent-Skill/skills/swiftui-expert-skill ~/.claude/skills/swiftui-expert-skill
```

## From README

SwiftUI Expert Skill Operating Rules Treat each View type as an invalidation boundary: give it only the data it reads and keep frequently changing dependencies close to the smallest affected subtree Search references/latest-apis.md when writing, reviewing, or migrating API ; look up only the APIs relevant to the task Replace hard-deprecated APIs with modern equivalents.

## Links

- HTML page: https://omgskills.com/library/avdlee/swiftui-agent-skill/swiftui-expert-skill/
- GitHub: https://github.com/AvdLee/SwiftUI-Agent-Skill
- Author: [@avdlee](https://omgskills.com/library/avdlee/index.md)

## More from this repo

- [update-swiftui-apis](https://omgskills.com/library/avdlee/swiftui-agent-skill/update-swiftui-apis/index.md) — Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements.
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 3.7k stars

## More skills by this author

- [swift-concurrency](https://omgskills.com/library/avdlee/swift-concurrency-agent-skill/swift-concurrency/index.md) — Diagnose Swift Concurrency issues, refactor callback-based code to async/await, and guide Swift 6 migration when...
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.7k stars
- [diagnostics-report-analyzer-skill](https://omgskills.com/library/avdlee/diagnostics/diagnostics-report-analyzer-skill/index.md) — Used to analyze AvdLee Diagnostics HTML reports for customer support and debugging.
   - [@avdlee](https://omgskills.com/library/avdlee/index.md) · 1.3k stars
