# Swiftui Expert Skill

> 用于 SwiftUI 实现：当用户要写、评审或重构 SwiftUI 代码，涉及现代 API、状态管理、view composition、性能、charts、无障碍或 macOS scene/window patterns 时使用。Prefer `ios` or `macos` when the core question is 平台 UX/HIG 规则而不是 SwiftUI 实现；Combine with them when 代码决策依赖平台规范。

- Skill: `hebertzhu/swiftui-expert-skill` (Agent Skill)
- Install (CLI): `npx skillmds@latest add hebertzhu/swiftui-expert-skill`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hebertzhu/swiftui-expert-skill/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: hebertzhu (https://skillmd.com/u/hebertzhu)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/hebertzhu/swiftui-expert-skill

---


# swiftui-expert-skill

## Intent
- 用于 SwiftUI 实现：当用户要写、评审或重构 SwiftUI 代码，涉及现代 API、状态管理、view composition、性能、charts、无障碍或 macOS scene/window patterns 时使用。Prefer `ios` or `macos` when the core question is 平台 UX/HIG 规则而不是 SwiftUI 实现；Combine with them when 代码决策依赖平台规范。

## Default operating pattern
1. Identify the target platform, form factor, and native system constraints.
2. Choose native patterns before inventing custom behavior.
3. Translate platform rules into implementable UI, architecture, or code guidance.
4. Check accessibility, ergonomics, lifecycle, and integration edges.
5. Return a concrete implementation path instead of vague platform advice.

## Pack fit
- Included in: `platform-apps`
- Keep examples generic, privacy-safe, and portable across hosts.

## Boundary
- Do not use it to answer high-level product strategy without actual SwiftUI implications.

