What problem does it solve? Writing correct, performant SwiftUI code requires keeping up with rapidly evolving APIs, state management rules, and deprecation cycles across iOS and macOS versions. This Skill provides structured guidance for reviewing, improving, and implementing SwiftUI code, plus workflows for recording and analyzing Instruments traces to diagnose performance issues. ## Core Features & Use Cases - Code Review and Refactoring: Audits SwiftUI code against a correctness checklist covering @State privacy, ForEach identity, @Observable data flow, and animation patterns, replacing hard-deprecated APIs with modern equivalents. - Topic-Routed References: Routes each task to one of 30+ focused reference files covering state management, lists, layout, animations, charts, accessibility, macOS scenes, document-based apps, and Liquid Glass. - Instruments Trace Workflows: Records .trace files via xctrace with device-aware template selection, then analyzes time profiler, hangs, hitches, and SwiftUI update causes to produce prioritized optimization plans. - Use Case: A developer notices scroll stutter in their SwiftUI app. They record a trace, run the analysis script to find that a wide EnvironmentWriter is invalidating dozens of views, and receive a targeted fix recommendation grounded in the state-management reference. ## Quick Start Ask the assistant to review your SwiftUI view file for correctness and performance issues using the SwiftUI expert skill.