swiftui-expert-skill
Intent
- 用于 SwiftUI 实现:当用户要写、评审或重构 SwiftUI 代码,涉及现代 API、状态管理、view composition、性能、charts、无障碍或 macOS scene/window patterns 时使用。Prefer
iosormacoswhen the core question is 平台 UX/HIG 规则而不是 SwiftUI 实现;Combine with them when 代码决策依赖平台规范。
Default operating pattern
- Identify the target platform, form factor, and native system constraints.
- Choose native patterns before inventing custom behavior.
- Translate platform rules into implementable UI, architecture, or code guidance.
- Check accessibility, ergonomics, lifecycle, and integration edges.
- 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.