What problem does it solve?
This Skill eliminates the frustration of slow, janky SwiftUI views caused by unnecessary re-renders, poor view identity management, incorrect lazy loading usage, and common performance anti-patterns that degrade the user experience of macOS and iOS apps.
Core Features & Use Cases
- Re-render Diagnosis: Identify exactly which dependencies trigger unnecessary view body re-evaluations using the Self._printChanges() method and fix over-observation with @Observable versus ObservableObject.
- Scrolling Performance: Resolve stutters and hangs in lists and grids by correcting eager versus lazy container usage, fixing image loading, and eliminating layout bottlenecks.
- View Identity Fixes: Resolve unexpected state loss, broken animations, and repeated onAppear calls caused by unstable .id() values and incorrect conditional view branching.
- Use Case: For example, if your music app's song library list stutters when scrolling through 1000+ tracks, this skill guides you to switch from an eager VStack to a LazyVStack and fix unstable row identifiers to restore smooth 120fps scrolling.
Quick Start
Use the swiftui-debugging skill to identify why your SwiftUI library view re-renders excessively when the playback queue updates and apply the recommended fixes to reduce unnecessary body evaluations.