webview
Asked on 06/11/2025
1 search
At WWDC 2025, Apple introduced new capabilities for integrating web content into SwiftUI apps using WebKit. The new WebView API allows developers to embed web content directly in their apps with ease. This API is designed to work seamlessly with SwiftUI, enabling developers to display web content by simply providing a URL to the WebView component.
Additionally, the WebPage API is introduced as a new observable class that represents web content, allowing for programmatic control and interaction with web pages. This includes features like navigating web pages, accessing page properties, and customizing user interactions with web content.
For more detailed information on how to use these new APIs, you can refer to the session Meet WebKit for SwiftUI (00:01:54), which covers loading and displaying web content, communicating with the page, and customizing content interaction.

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.

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