swiftui-webkit

Installation
SKILL.md

SwiftUI WebKit Integration

Native WebView struct for SwiftUI. Replaces the old WKWebView + Representable bridge pattern.

Critical Constraints

  • ❌ DO NOT use WKWebView + UIViewRepresentable or NSViewRepresentable → ✅ Use WebView struct directly
  • ❌ DO NOT use WKWebViewConfiguration → ✅ Use WebPage.Configuration
  • ❌ DO NOT use WKNavigationDelegate → ✅ Use WebPage.NavigationDeciding protocol
  • ❌ DO NOT use evaluateJavaScript(_:) → ✅ Use page.callJavaScript(_:) (async/await)
  • ❌ DO NOT use WKUserContentController for message passing → ✅ Use callJavaScript with arguments

Basic WebView

import SwiftUI
import WebKit
Related skills

More from makgunay/claude-swift-skills

Installs
10
First Seen
Feb 14, 2026