webkit-integration
WebKit integration in SwiftUI using WebView and WebPage for embedding web content, navigation, JavaScript interop, and customization. Use when embedding web content in SwiftUI apps.
npx skills add rshankras/claude-code-apple-skills --skill webkit --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# WebKit Integration for SwiftUI Embed and control web content in SwiftUI apps using the native `WebView` struct and `WebPage` observable class. Covers loading, navigation, JavaScript execution, and view customization. ## When This Skill Activates - User wants to display web content inside a SwiftUI app - User needs to load URLs, HTML strings, or data blobs in a web view - User asks about JavaScript interop from SwiftUI - User needs navigation control (back, forward, reload) for embedded web content - User wants to customize web view behavior (gestures, text selection, link previews) - User needs to capture snapshots or export PDFs from web content - User asks about intercepting navigation requests or custom URL schemes - User wants to configure private browsing or custom user agents ## Decision Tree ``` What do you need? | +-- Display a URL or HTML content | +-- Simple, no interaction needed | | +-- WebView(url:) --> see webview-basics.md | +-- Need loading state, reload, custom config | +-- WebPage + WebView(page) --> see webview-basics.md | +-- Navigate programmatically (back, forward, intercept) | +-- Back/forward list, navigation events | | +-- see navigation.md | +-- Intercep
- When This Skill Activates
- Decision Tree
- API Availability
- Quick Start
- Simplest Usage
- With WebPage for Full Control
- Top Mistakes
- Review Checklist
- Reference Files
- Cross-References
- References
What does the webkit-integration skill do?
WebKit integration in SwiftUI using WebView and WebPage for embedding web content, navigation, JavaScript interop, and customization. Use when embedding web content in SwiftUI apps.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill webkit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
