Update Swiftui Apis
Automatically updates SwiftUI APIs in your project to maintain compatibility and leverage latest features.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add update-swiftui-apis npx -- -y @trustedskills/update-swiftui-apis
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"update-swiftui-apis": {
"command": "npx",
"args": [
"-y",
"@trustedskills/update-swiftui-apis"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to automatically update SwiftUI APIs within codebases, ensuring projects remain compatible with the latest iOS and macOS frameworks. It streamlines the maintenance of Swift applications by handling necessary API migrations without manual intervention.
When to use it
- Framework Upgrades: When upgrading a project from an older Xcode version to one with breaking SwiftUI changes.
- API Deprecation Handling: Automatically replacing deprecated modifiers or views with their modern equivalents.
- Continuous Integration: Running updates as part of a CI/CD pipeline before deploying to production environments.
- Legacy Code Modernization: Refactoring existing codebases that rely on outdated SwiftUI syntax to match current standards.
Key capabilities
- Identifies and locates deprecated or obsolete SwiftUI API usage in source files.
- Applies necessary code transformations to align with the latest framework versions.
- Maintains project structure while updating specific API calls and modifiers.
Example prompts
- "Update all deprecated
.frame()usages in my SwiftUI project to use the new layout system." - "Migrate this view model to use the latest SwiftUI Combine syntax instead of RxSwift."
- "Check if any
@StateObjectinstances are using outdated lifecycle management and update them."
Tips & gotchas
Ensure your local environment matches the target iOS or macOS version before running updates, as some APIs may require specific deployment targets. Always review generated changes manually, especially for complex views where automatic migration might miss context-specific nuances.
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.