What problem does it solve?
Diagnoses and resolves SwiftUI runtime performance issues such as slow rendering, janky scrolling, excessive body evaluations, identity churn, and main-thread work that causes hangs or frame drops. The Skill helps developers go from symptom to root cause using code review, Instruments guidance, and concrete remediation steps.
Core Features & Use Cases
- Code-First Review: Identify costly patterns in view bodies, unstable identities in lists, and broad observable dependencies from a code sample.
- Profiling Guidance: Step-by-step instructions for collecting and interpreting Instruments traces (SwiftUI lane, Time Profiler, Hangs) and Cause-and-Effect graphs.
- Targeted Remediations: Practical fixes such as narrowing state scope, stabilizing ForEach ids, moving heavy work off the main thread, caching formatters, and downsampling images.
- Verification: Advice for re-measuring improvements on Release builds and summarizing before/after metrics and expected effort.
Quick Start
Provide the slow SwiftUI view code, reproduction steps, device/build details, and an Instruments trace or screenshots for a focused performance audit.