swiftui-debug

Installation
SKILL.md

SwiftUI Debugging Guide

Debug common SwiftUI issues in the Leavn app:

Common Issues

1. View Not Updating

Check:

  • Is ViewModel using @Observable macro?
  • Are properties marked @MainActor if needed?
  • Is view observing the right object?

Fix:

// Ensure ViewModel is @Observable
@Observable
class MyViewModel {
    var state: String = ""  // Auto-tracked
}
Related skills
Installs
2
GitHub Stars
10
First Seen
Jan 25, 2026