Agent Skills: Modal Sheet Debugger

Fix SwiftUI sheet presentation issues in Leavn - competing sheets, dismissal patterns, binding synchronization, enum-based consolidation

UncategorizedID: willsigmon/sigstack/modal-sheet-debugger

Install this agent skill to your local

pnpm dlx add-skill https://github.com/willsigmon/sigstack/tree/HEAD/plugins/ios-dev/skills/modal-sheet-debugger

Skill Files

Browse the full folder contents for modal-sheet-debugger.

Download Skill

Loading file tree…

plugins/ios-dev/skills/modal-sheet-debugger/SKILL.md

Skill Metadata

Name
Modal Sheet Debugger
Description
Fix SwiftUI sheet presentation issues in Leavn - competing sheets, dismissal patterns, binding synchronization, enum-based consolidation

Modal Sheet Debugger

Fix sheet presentation issues:

  1. Find competing sheets: Multiple .sheet() modifiers on same view

  2. Consolidate pattern:

    enum SheetType: Identifiable {
        case optionA, optionB
        var id: String { ... }
    }
    @State var activeSheet: SheetType?
    .sheet(item: $activeSheet) { type in
        switch type { ... }
    }
    
  3. Fix dismissal: Update binding before dismiss()

  4. Check bindings: Ensure parent and environment in sync

Use when: Multiple sheets conflict, dismissal bugs, sheet state issues