swiftui-webkit

Embed and control web content in SwiftUI apps using native WebKit APIs.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/femitz/flyby --skill swiftui-webkit-femitz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: swiftui-webkit
Source: https://github.com/femitz/flyby/tree/main/.agents/skills/swiftui-webkit
Command: npx skills add https://github.com/femitz/flyby --skill swiftui-webkit-femitz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Embeds and controls web content in SwiftUI using native WebKit APIs, enabling a focused embedded web experience within SwiftUI apps.

Core Features & Use Cases

  • WebView(url:) for simple embedding of remote content
  • WebPage for stateful loading, observation, and navigation control
  • WebPage.NavigationDeciding to intercept and reroute navigations
  • JavaScript integration via callJavaScript to run scripts on the page
  • Local content and custom URL schemes using WebPage.Configuration
  • WebView customization and page-driven UI integration

Quick Start

Create a SwiftUI view that uses WebView and WebPage to load a URL and observe its loading progress.

Frequently Asked Questions about swiftui-webkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I embed a webpage in a SwiftUI app?▼

To embed a webpage in a SwiftUI app, use the WebView(url:) API for simple remote content integration. This native WebKit approach provides a focused embedded web experience directly within your SwiftUI views.

How do I intercept and control navigation in a SwiftUI WebView?▼

You can intercept and control navigation in a SwiftUI WebView by applying the WebPage.NavigationDeciding pattern. This allows you to intercept external links and reroute navigations within your app.

Can I run JavaScript on a webpage embedded in SwiftUI?▼

Yes, you can run JavaScript on embedded web content in SwiftUI by using the callJavaScript API. This enables direct script execution and interaction with the loaded webpage.

How do I load local content in a SwiftUI WebKit view?▼

You load local content and custom URL schemes in SwiftUI by configuring WebPage.Configuration. This setup allows your app to serve app-owned local web experiences directly through the native WebKit APIs.

Does WebKit for SwiftUI support observing page loading progress?▼

Yes, WebKit for SwiftUI supports observing loading progress through the stateful WebPage component. It enables state observation and page-driven UI integration for actively loading web content.