what's the changes in Webkit that allow embedded web views within an app.
Asked on 06/25/2025
1 search
Apple introduced several changes to WebKit that enhance the ability to embed web views within an app, particularly with SwiftUI. Here are the key updates:
-
New SwiftUI APIs: WebKit now includes a full set of SwiftUI APIs, including a new
WebView
component. This component is designed to make it easy to display web content within your app by simply providing a URL. TheWebView
is powered by WebKit, similar to Safari, and allows for customization and interaction with web pages. -
Declarative WebView Component: A new declarative webview component has been introduced, specifically designed for SwiftUI. This component allows for more powerful and flexible integration of web content into apps.
-
Web Page API: This new API allows for programmatic control of web content. It enables rich interaction with web pages, such as navigating programmatically and accessing page properties.
-
Modern Swift Technologies: The new APIs are built with modern Swift technologies like observation and strict concurrency, simplifying the integration of web content into apps.
-
Customization and Interaction: The new WebKit APIs support customizing user agents, calling JavaScript, and handling custom URL schemes, providing developers with extensive control over how web content is displayed and interacted with in their apps.
For more detailed information, you can refer to the session Meet WebKit for SwiftUI (00:01:54), which covers how to load and display web content using these new APIs.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

What’s new in SwiftUI
Learn what’s new in SwiftUI to build great apps for any Apple platform. We’ll explore how to give your app a brand new look and feel with Liquid Glass. Discover how to boost performance with framework enhancements and new instruments, and integrate advanced capabilities like web content and rich text editing. We’ll also show you how SwiftUI is expanding to more places, including laying out views in three dimensions.

Meet WebKit for SwiftUI
Discover how you can use WebKit to effortlessly integrate web content into your SwiftUI apps. Learn how to load and display web content, communicate with webpages, and more.