Home / Market / update swiftui apis

update swiftui apis

Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements.

skill★ 508780 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: update-swiftui-apis description: "Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements." risk: critical source: https://github.com/AvdLee/SwiftUI-Agent-Skill/tree/main/.agents/skills/update-swiftui-apis source_repo: AvdLee/SwiftUI-Agent-Skill source_type: community date_added: 2026-07-01 license: MIT license_source: https://github.com/AvdLee/SwiftUI-Agent-Skill/blob/main/LICENSE

---

Update SwiftUI APIs

When to Use

Use this skill when you need scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements. Use when asked to "update latest APIs", "refresh deprecated SwiftUI APIs", "check for new SwiftUI deprecations", "scan for API changes", or after a new iOS/Xcode...

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

Workflow

1. Understand current coverage

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

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:

5. Update latest-apis.md

Follow the established format exactly. Each entry must include:

Section placement -- place under the correct version segment:

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:

Sosumi MCP Tool Reference

| Tool | Parameters | Returns | |------|-----------|---------| | searchAppleDocumentation | query (string) | JSON with results[] containing title, url, description, breadcrumbs, tags, type | | fetchAppleDocumentation | path (string, e.g. /documentation/swiftui/view/foregroundstyle(_:)) | Markdown documentation content | | fetchAppleVideoTranscript | path (string, e.g. /videos/play/wwdc2025/10133) | Markdown transcript | | fetchExternalDocumentation | url (string, full https URL) | Markdown documentation content |

Tips

Limitations