Axiom Swiftui Nav
Generates SwiftUI navigation stacks and views based on provided data axioms, streamlining iOS app development.
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-nav npx -- -y @trustedskills/axiom-swiftui-nav
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"axiom-swiftui-nav": {
"command": "npx",
"args": [
"-y",
"@trustedskills/axiom-swiftui-nav"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The Axiom Swiftui Nav skill streamlines iOS app development by generating SwiftUI navigation stacks and views based on provided data axioms. It assists developers in making informed decisions about navigation architecture, implementing programmatic navigation with NavigationPath, and addressing common challenges like deep linking and state restoration. This skill helps ensure robust and maintainable navigation within SwiftUI applications.
When to use it
- Choosing between different navigation architectures (e.g.,
NavigationStackvs.NavigationSplitViewvs.TabView). - Implementing programmatic navigation using
NavigationPath. - Setting up deep linking and URL routing functionality.
- Restoring navigation state after the app goes to background.
- Adopting Tab/Sidebar patterns (available in iOS 18+).
- Implementing coordinator or router patterns for navigation management.
Key capabilities
- Provides a decision tree to help select appropriate navigation architecture based on device targets, content hierarchy depth, and multiplatform requirements.
- Demonstrates
NavigationPathmanipulation patterns for actions like pushing, popping, and deep linking. - Offers guidance on URL parsing, path construction order, and timing issues related to deep links.
- Provides examples of state restoration techniques using
Codable NavigationPathandSceneStorage. - Includes Router pattern examples and advice on when coordinators are beneficial versus adding unnecessary complexity.
Example prompts
- "Should I use
NavigationStackorNavigationSplitViewfor my app?" - "How do I navigate programmatically in SwiftUI?"
- "My deep links aren't working; the app opens but shows the wrong screen."
Tips & gotchas
- Avoid using deprecated
NavigationViewon iOS 16 and later, as it has different behavior. The skill provides patterns to replace this with modern alternatives. - Consider using the related
axiom-swiftui-nav-diagskill for troubleshooting navigation failures. - For a comprehensive API reference (including Tab customization and iOS 26+ features), utilize the
axiom-swiftui-nav-refskill.
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.