swiftui-webkit
Embeds and controls web content in SwiftUI with WebKit for SwiftUI, including WebView, WebPage, navigation policies, JavaScript execution, observable page state, link interception, local HTML or data loading, and custom URL schemes. Use when building iOS 26+ article/detail views, help centers, in-app documentation, or other embedded web experiences backed by HTML, CSS, and JavaScript.
npx skills add dpearson2699/swift-ios-skills --skill swiftui-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.
# SwiftUI WebKit Embed and manage web content in SwiftUI using the native WebKit-for-SwiftUI APIs introduced for iOS 26, iPadOS 26, macOS 26, and visionOS 26. Use this skill when the app needs an integrated web surface, app-owned HTML content, JavaScript-backed page interaction, or custom navigation policy control. ## Contents - [Choose the Right Web Container](#choose-the-right-web-container) - [Displaying Web Content](#displaying-web-content) - [Loading and Observing with WebPage](#loading-and-observing-with-webpage) - [Navigation Policies](#navigation-policies) - [JavaScript Integration](#javascript-integration) - [Local Content and Custom URL Schemes](#local-content-and-custom-url-schemes) - [WebView Customization](#webview-customization) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Choose the Right Web Container Use the narrowest tool that matches the job. | Need | Default choice | |---|---| | Embedded app-owned web content in SwiftUI | `WebView` + `WebPage` | | iOS/iPadOS modal browsing with Safari behavior | `SFSafariViewController` | | macOS or visionOS browse-out behavior | `openURL` / default browser | | OAut
- Contents
- Choose the Right Web Container
- Displaying Web Content
- Loading and Observing with WebPage
- Navigation Policies
- JavaScript Integration
- Local Content and Custom URL Schemes
- WebView Customization
- Common Mistakes
- Review Checklist
- References
What does the swiftui-webkit skill do?
Embeds and controls web content in SwiftUI with WebKit for SwiftUI, including WebView, WebPage, navigation policies, JavaScript execution, observable page state, link interception, local HTML or data loading, and custom URL schemes. Use when building iOS 26+ article/detail views, help centers, in-app documentation, or other embedded web experiences backed by HTML, CSS, and JavaScript.
How do I install it?
Run `npx skills add dpearson2699/swift-ios-skills --skill swiftui-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 dpearson2699/swift-ios-skills, a repository with 963 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.