swiftui

Look up production usage of SwiftUI APIs in real open-source macOS apps.

2|1|Updated Jun 7, 2026
One-click install
npx skills add https://github.com/yigitkonur/plugin-swiftui --skill swiftui-yigitkonur
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftui
Source: https://github.com/yigitkonur/plugin-swiftui/tree/main/plugins/swiftui/skills/swiftui
Command: npx skills add https://github.com/yigitkonur/plugin-swiftui --skill swiftui-yigitkonur

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Coding agents often write SwiftUI code based on stale training data, producing deprecated modifiers, nonexistent API shapes, and outdated idioms. This Skill grounds SwiftUI code generation in how 1,857 real shipping macOS apps actually use each API. ## Core Features & Use Cases - Production API Lookup: Query a corpus of 1,857 open-source macOS apps parsed with SwiftSyntax to see how a given SwiftUI API or design intent is used in practice. - Deprecation Guidance: Detects deprecated APIs and returns the modern replacement used by current shipping apps. - Source-Grounded Examples: Every result links to a GitHub permalink pinned to a commit SHA plus the matching sosumi.ai documentation, so spec and practice stay connected. - Use Case: Before writing a settings window, ask how production macOS apps structure a SwiftUI Settings scene, then fetch the enclosing real-world example file to model your code on. ## Quick Start Ask the agent to use $swiftui to look up how production macOS apps use a specific SwiftUI API such as Table or NavigationSplitView.

Frequently Asked Questions about swiftui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find real-world SwiftUI API usage examples?

Run the swiftui-ctx CLI with the lookup command followed by the API name or design intent. It returns consensus patterns, recommended usage, and GitHub permalinks to production code from 1,857 open-source macOS apps.

How do I check if a SwiftUI modifier is deprecated?

Look up the modifier with the swiftui-ctx lookup command. When the result marks an API as deprecated, it includes the modern replacement that current shipping macOS apps use instead.

What should I do when the SwiftUI lookup returns exit code 3?

Exit code 3 means the direct lookup found no match. Retry the query using the search command instead, which performs a broader search across the indexed corpus of macOS apps.

Does this work for macOS-only SwiftUI development?

Yes, the corpus is built specifically from open-source macOS SwiftUI apps and the macOS 26.5 SDK interface. It covers 511 modifiers, 402 types, property wrappers, environment keys, and whole-pattern recipes.

Why does the agent write outdated SwiftUI code without this lookup?

Language models rely on training data that may predate current APIs, so they emit deprecated modifiers or idioms from older WWDC eras. Querying production app usage grounds the generated code in how shipping apps actually write SwiftUI today.