swiftui-debugging
Installation
SKILL.md
SwiftUI Performance Debugging
Systematic guide for diagnosing and fixing SwiftUI performance problems: unnecessary view re-evaluations, identity issues, expensive body computations, and lazy loading mistakes.
When This Skill Activates
Use this skill when the user:
- Reports slow or janky SwiftUI views
- Sees excessive view re-renders or body re-evaluations
- Asks about
Self._printChanges()or view debugging - Has scrolling performance issues with lists or grids
- Asks why a view keeps updating when nothing changed
- Mentions
@ObservableorObservableObjectperformance differences - Wants to understand SwiftUI view identity or diffing
- Uses
AnyViewand asks about performance implications - Has a hang or stutter traced to SwiftUI rendering