# swiftui-expert-skill

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

Use when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state management and \`@Observable\` data flow, view composition and invalidation/performance, lists and \`ForEach\` identity, environment usage, localization, animations, Liquid Glass adoption, migrating soft-deprecated APIs, or Instruments \`.trace\` capture/analysis for hangs, hitches, CPU hotspots, or excessive view updates.

## 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 Consult references/latest-apis.md at the start of every task to avoid deprecated APIs Prefer native SwiftUI APIs over UIKit/AppKit bridging unless bridging is necessary Focus on correctness and performance; do not enforce specific architectures (MVVM, VIPER, etc.) Encourage separating business logic from views for testability without mandating how Follow Apple's Human Interface Guidelines and API design patterns Only adopt Liquid Glass when explicitly requested by the user (see references/liquid-glass.md) Present performance optimizations as suggestions, not requirements Use \#available gating with sensible fallbacks for version-specific APIs Task Workflow Review existing SwiftUI code Read the code under review and identify which topics apply Flag deprecated APIs (compare against references/latest-apis.md) Run the Topic Router below for each relevant topic Validate \#available gating and fallback paths for iOS 26+ features Improve existing SwiftUI...

## Links

- HTML page: https://omgskills.com/skills/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/skills/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.5k stars

## More skills by this author

- [swift-concurrency](https://omgskills.com/skills/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.6k stars
- [diagnostics-report-analyzer-skill](https://omgskills.com/skills/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
