Navigation Debugger
SKILL.md
Navigation Debugger
Fix navigation bugs in Leavn:
-
Check notification handling:
- Search for notification name in ContentView
- Verify .onReceive() handlers exist
- Check AppCoordinator navigation methods
-
Common Leavn patterns:
// Post navigation NotificationCenter.default.post( name: .OpenBibleReference, userInfo: ["book": "Genesis", "chapter": 1] ) // Handle in ContentView .onReceive(NotificationCenter.default.publisher(for: .OpenBibleReference)) { // Navigate to Bible } -
Debug steps:
- Add AppLog in notification handlers
- Verify userInfo parsing
- Check tab selection works
- Test deep link URLs
Use when: Navigation broken, wrong screen, deep links fail, tab routing issues