Agent skill
Modal Sheet Debugger
Fix SwiftUI sheet presentation issues in Leavn - competing sheets, dismissal patterns, binding synchronization, enum-based consolidation
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/modal-sheet-debugger
SKILL.md
Modal Sheet Debugger
Fix sheet presentation issues:
-
Find competing sheets: Multiple
.sheet()modifiers on same view -
Consolidate pattern:
swiftenum SheetType: Identifiable { case optionA, optionB var id: String { ... } } @State var activeSheet: SheetType? .sheet(item: $activeSheet) { type in switch type { ... } } -
Fix dismissal: Update binding before dismiss()
-
Check bindings: Ensure parent and environment in sync
Use when: Multiple sheets conflict, dismissal bugs, sheet state issues
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?