Axiom Swiftui Debugging
Helps with SwiftUI, debugging as part of building frontend UIs and user experiences workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add axiom-swiftui-debugging npx -- -y @trustedskills/axiom-swiftui-debugging
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"axiom-swiftui-debugging": {
"command": "npx",
"args": [
"-y",
"@trustedskills/axiom-swiftui-debugging"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill assists with debugging SwiftUI applications, a framework for building user interfaces on Apple platforms. It provides structured guidance for diagnosing common issues categorized as view update problems, preview crashes, and layout inconsistencies. The skill uses decision trees and reference patterns to systematically identify root causes and suggests solutions based on observable symptoms.
When to use it
- A view isn't updating when you expect it to.
- Your SwiftUI preview crashes or won't load.
- The layout of views appears incorrect, such as being in the wrong position or overlapping unexpectedly.
- You are considering using
@ObservedObjectas a general solution for update issues.
Key capabilities
- View Update Diagnosis: Decision tree to troubleshoot why views aren’t redrawing, covering struct mutation, lost binding identity, accidental view recreation, and missing observer patterns.
- Preview Crash Troubleshooting: Decision tree to identify causes of preview crashes including missing dependencies, state initialization failures, and Xcode cache corruption.
- Layout Issue Resolution: Provides quick reference patterns for common SwiftUI layout problems.
- Guidance on
@Statevs@Observable: Explains when to use each approach for managing view updates. - Identifies
ForEachIdentity Issues: Helps resolve focus loss in text fields by suggesting the use of stable IDs.
Example prompts
- "My list item doesn't update when I tap the favorite button, even though the data changed."
- "Preview crashes with 'Cannot find AppModel in scope' but it compiles fine."
- "Text field loses focus when I start typing, very frustrating."
Tips & gotchas
- Xcode Requirement: Requires Xcode 26+ and iOS 17+. While patterns for older iOS versions (iOS 14-16) are still valid, be aware of potential differences.
- Systematic Approach: The skill emphasizes a systematic approach to debugging – start with symptoms, test systematically, and eliminate causes one by one. Avoid guessing.
- Not for Runtime Crashes: This skill is designed for preview debugging; use
axiom-xcode-debuggingfor app crashes at runtime or build failures.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.