swiftui-webkit

Installation
SKILL.md

WebKit for SwiftUI (iOS / macOS 26+)

Native SwiftUI web content: no UIViewRepresentable, no WKWebView bridging. WebView is the on-screen view; WebPage (an @Observable model) loads, observes, and controls the content. Grounded in Apple's WebKit-for-SwiftUI framework.

  • Availability: WebView / WebPage are iOS 26 / macOS 26 / visionOS 26+. For earlier deployment targets wrap WKWebView in a UIViewRepresentable — see Fallback and references/wkwebview-fallback.md.
  • State: WebPage is a plain @Observable class — observe it exactly like any swiftui-observation model (@State private var page = WebPage()).
  • Security: the web layer is an attack surface. Restrict navigation with NavigationDeciding, never inject unsanitized input into callJavaScript, and evaluate serverTrust / pin per swift-security for money-moving flows.

Contents

Installs
4
GitHub Stars
12
First Seen
Aug 23, 2026
swiftui-webkit — talissonvitorino/kmp-ios-skills