New to Claude Skills? Learn how to install them →

Uavdlee on GitHub

Update SwiftUI APIs

Free

Keep your SwiftUI codebase up-to-date with modern APIs.

Get this skill

Free · Opens the source repo

What Update SwiftUI APIs does

The Update SwiftUI APIs skill is designed for developers working with Apple's SwiftUI framework who need to maintain their code in line with the latest API changes. As SwiftUI evolves, certain APIs become deprecated, and this skill automates the process of identifying those deprecated APIs and suggesting modern replacements. By utilizing the Sosumi MCP, this skill scans Apple's official documentation to ensure that your SwiftUI projects are using the most current and efficient APIs available.

To use this skill, developers must first ensure that the Sosumi MCP is enabled, as it provides the necessary functions to search and fetch Apple documentation. The skill systematically reads through the existing latest-apis.md file to understand which transitions from deprecated to modern APIs have already been documented. It then loads a scan manifest that categorizes API areas and prepares the skill to search for any new deprecations or corrections needed in the existing documentation.

Once the scanning process begins, the skill searches for relevant documentation and identifies any deprecated APIs, noting their modern replacements and the iOS version in which these replacements were introduced. This ensures that developers can keep their codebase not only functional but also optimized for the latest iOS versions. The skill culminates in updating the latest-apis.md file with new findings, ensuring that all entries are formatted correctly and categorized by iOS version.

This skill is particularly useful for SwiftUI developers who frequently update their applications to comply with the latest iOS standards and want to avoid potential issues arising from using outdated APIs. By automating the scanning and updating process, it saves time and reduces the risk of human error in maintaining API compliance.

When to use it

Use this skill when you need to ensure your SwiftUI code is up-to-date with the latest API changes, especially after new iOS or Xcode releases.

When not to use it

This skill may not be suitable for projects that do not use SwiftUI or when the Sosumi MCP is not available, as it relies on this tool for functionality.

What you can build with it

Updating after iOS Release

After a new iOS version is released, use this skill to quickly check for any deprecated APIs in your SwiftUI code.

Maintaining Code Quality

Regularly scan your SwiftUI projects to ensure that you are using the most up-to-date APIs and avoid potential issues.

Preparing for App Store Submission

Before submitting your app to the App Store, use this skill to confirm that all deprecated APIs have been addressed.

How to install Update SwiftUI APIs

View source

1. Install with the skills CLI

npx skills add avdlee/swiftui-agent-skill/update-swiftui-apis --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by avdlee

Update SwiftUI APIs

Systematically scan Apple's developer documentation via the Sosumi MCP, identify deprecated SwiftUI APIs and their modern replacements, and update swiftui-expert-skill/references/latest-apis.md.

Prerequisites

  • Sosumi MCP must be enabled and available (provides searchAppleDocumentation, fetchAppleDocumentation, fetchAppleVideoTranscript, fetchExternalDocumentation)
  • Write access to this repository (or a fork)

Workflow

1. Understand current coverage

Read swiftui-expert-skill/references/latest-apis.md to understand:

  • Which deprecated-to-modern transitions are already documented
  • The version segments in use (iOS 15+, 16+, 17+, 18+, 26+)
  • The Quick Lookup Table at the bottom

2. Load the scan manifest

Read references/scan-manifest.md (relative to this skill). It contains the categorized list of API areas, documentation paths, search queries, and WWDC video paths to scan.

3. Scan Apple documentation

For each category in the manifest:

  1. Call searchAppleDocumentation with the listed queries to discover relevant pages.
  2. Call fetchAppleDocumentation with specific documentation paths to get full API details.
  3. Look for deprecation notices, "Deprecated" labels, and "Use ... instead" guidance.
  4. Note the iOS version where the modern replacement became available.
  5. Optionally call fetchAppleVideoTranscript for WWDC sessions that announce API changes.

Batch related searches together for efficiency. Focus on finding new deprecations not yet in latest-apis.md.

4. Compare and identify changes

Compare findings against existing entries. Categorize results:

  • New deprecations: APIs not yet documented in latest-apis.md
  • Corrections: Existing entries that need updating (wrong version, better replacement available)
  • New version segments: If a new iOS version introduces deprecations, add a new section

5. Update latest-apis.md

Follow the established format exactly. Each entry must include:

Section placement -- place under the correct version segment:

  • "Always Use (iOS 15+)" for long-deprecated APIs
  • "When Targeting iOS 16+" / "17+" / "18+" / "26+" for version-gated changes

Entry format:

**Always use `modernAPI()` instead of `deprecatedAPI()`.**

\```swift
// Modern
View()
    .modernAPI()

// Deprecated
View()
    .deprecatedAPI()
\```

Quick Lookup Table -- add a row at the bottom of the file:

| `deprecatedAPI()` | `modernAPI()` | iOS XX+ |

Keep the attribution line at the top of the file:

Based on a comparison of Apple's documentation using the Sosumi MCP, we found the latest recommended APIs to use.

6. Open a pull request

  1. Create a branch from main named update/latest-apis-YYYY-MM (use current year and month).
  2. Commit changes to swiftui-expert-skill/references/latest-apis.md.
  3. Open a PR via gh pr create with:
    • Title: "Update latest SwiftUI APIs (Month Year)"
    • Body: Summary of new/changed entries, attribution to Sosumi MCP

Sosumi MCP Tool Reference

ToolParametersReturns
searchAppleDocumentationquery (string)JSON with results[] containing title, url, description, breadcrumbs, tags, type
fetchAppleDocumentationpath (string, e.g. /documentation/swiftui/view/foregroundstyle(_:))Markdown documentation content
fetchAppleVideoTranscriptpath (string, e.g. /videos/play/wwdc2025/10133)Markdown transcript
fetchExternalDocumentationurl (string, full https URL)Markdown documentation content

Tips

  • Start broad with searchAppleDocumentation queries, then drill into specific paths with fetchAppleDocumentation.
  • Apple's deprecation docs typically say "Deprecated" in the page and link to the replacement.
  • WWDC "What's new in SwiftUI" sessions are the best source for newly introduced replacements.
  • When unsure about the exact iOS version for a deprecation, verify by checking the "Availability" section in the fetched documentation.
  • If an API is deprecated but no direct replacement exists, note this rather than suggesting an incorrect alternative.

Frequently asked questions about Update SwiftUI APIs

Similar skills