debug:swiftui
Installation
SKILL.md
SwiftUI Debugging Guide
A comprehensive guide for systematically debugging SwiftUI applications, covering common error patterns, debugging tools, and step-by-step resolution strategies.
Common Error Patterns
1. View Not Updating
Symptoms:
- UI doesn't reflect state changes
- Data updates but view remains stale
- Animations don't trigger
Root Causes:
- Missing
@Publishedon ObservableObject properties - Using wrong property wrapper (@State vs @Binding vs @ObservedObject)
- Mutating state on background thread
- Object reference not triggering SwiftUI's change detection