← ClaudeAtlas

swiftui-webkitlisted

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.
dpearson2699/swift-ios-skills · ★ 730 · Web & Frontend · score 80
Install: claude install-skill dpearson2699/swift-ios-skills
# 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` | | Simple external site presentation with Safari behavior | `SFSafariViewController` | | OAuth or third-party sign-in | `ASWebAuthenticationSession` | | Back-deploy below iOS 26 or use missing legacy-only WebKit features | `WKWebView` fallback | Prefer `WebView` and `WebPage` for modern SwiftUI apps targeting iOS 26+. Apple’s WWDC25 guidance explicitly recommends migrating SwiftUI apps away from UIKit/AppKit WebKit wrappers when possible. Do not