A solid reference for SwiftUI's native WebKit APIs introduced in iOS 26 and later. Use this when you need to embed web content in a modern SwiftUI app, whether that's rendering article detail views, loading bundled HTML documentation, or running JavaScript against page content. It covers WebView and WebPage basics, navigation policy interception, observable page state, and custom URL scheme handlers. The guidance correctly steers you toward SFSafariViewController for simple external sites and ASWebAuthenticationSession for OAuth, which is the right call. One gap: it doesn't fully explain how to replace WKScriptMessageHandler for JavaScript to native messaging, so you may need a workaround pattern if your use case depends on bidirectional communication.

skills.sh installs
3.4K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill swiftui-webkit --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Use the narrowest tool that matches the job.

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Frontend Development, Documentation, Mobile Development
First seen
May 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1jezweb avatarcolor-palettejezweb/claude-skillsGenerate complete, accessible colour palettes from a single brand hex. Produces 11-shade scale (50-950), semantic tokens, dark mode variants, Tailwind v4 CSS ou3.4Kskills.sh installs
2vercel avatarstreamdownvercel/streamdownImplement, configure, and customize Streamdown — a streaming-optimized React Markdown renderer with syntax highlighting, Mermaid diagrams, math rendering, and C3.3Kskills.sh installs
3gogf avatargoframe-v2gogf/skillsGoFrame v2 development skill. Use only when the target Go project uses or is explicitly adopting GoFrame v2: the nearest go.mod requires github.com/gogf/gf/v2, 3.3Kskills.sh installs
4onmax avatarvitestonmax/nuxt-skillsUse when writing unit/integration tests for Vite projects - configure vitest.config.ts, write test suites with describe/it, create mock implementations with vi.3.2Kskills.sh installs
5freshtechbro avatarmodern-web-designfreshtechbro/claudedesignskillsModern web design trends, principles, and implementation patterns for 2024-2025. Use this skill when designing websites, creating interactive experiences, imple3.1Kskills.sh installs
6benjaminsehl avatarliquid-theme-standardsbenjaminsehl/liquid-skillsCSS, JavaScript, and HTML coding standards for Shopify Liquid themes. Covers BEM naming inside stylesheet tags, design tokens, CSS custom properties, Web Compon3.1Kskills.sh installs