What problem does it solve?
SwiftUI apps need to show and interact with web content while still maintaining native responsiveness, state updates, and controlled navigation instead of relying on UIKit wrappers or unmanaged browsing behavior.
Core Features & Use Cases
- Native embedded browsing for iOS 26+ SwiftUI: Use WebView and WebPage to render web content in SwiftUI with observable page state such as loading status, title, URL, and progress.
- Navigation control and link routing: Use WebPage.NavigationDeciding to allow, cancel, or reroute navigations—keeping app-owned URLs embedded while handing external destinations to the system via openURL.
- JavaScript integration for interactive pages: Execute JavaScript via callJavaScript and pass arguments to extract data from the loaded document.
- Local/offline HTML with custom URL schemes: Serve bundled HTML/CSS/JS through URLSchemeHandler for docs-like experiences and offline help content.
Use case example: An app shows an in-app help article hosted as bundled HTML, reads metadata from the page after navigation finishes, and intercepts navigation to external links so they open outside the embedded surface.
Quick Start
Tell the assistant: "Design a SwiftUI iOS 26+ screen using WebView and WebPage that loads an app-owned docs page, shows a loading progress overlay, intercepts external links to open them with openURL, and calls JavaScript after the navigation finishes to extract article headings."