what news were introduced to SwiftUI in WWDC25?

Asked on 06/18/2025

1 search

At WWDC25, several exciting updates were introduced to SwiftUI. Here are some of the key highlights:

  1. Web APIs: SwiftUI now allows embedding web content with WebKit's WKWebView API. A new declarative webview component and a Web Page API have been introduced, designed specifically for SwiftUI, enabling more powerful in-app browsing experiences.

  2. Rich Text Editing: The SwiftUI text editor now supports rich text editing. By changing the binding of your text editor's text from a string to an attributed string, you can enable rich text editing with customizable styling.

  3. 3D Charts: Swift Charts now supports 3D, thanks to RealityKit. This includes support for interacting with the camera to rotate and zoom in on charts from every angle.

  4. Performance Improvements: Significant performance enhancements have been made, particularly in lists and scrolling. For example, lists of over 100,000 items on macOS now load six times faster and update up to 16 times faster.

  5. Integration with RealityKit: SwiftUI has improved integration with RealityKit, making it easier to interact with RealityKit entities from SwiftUI code. Enhancements include improved coordinate conversion API, support for presentations, and the ability to present SwiftUI popovers directly from a RealityKit entity.

  6. Widgets and Controls: Widgets are now available on Vision OS and CarPlay, with new APIs for relevance on WatchOS. Custom controls have been introduced for WatchOS 26 and macOS Tahoe.

  7. 3D Layouts: SwiftUI now supports creating rich 3D layouts with depth alignments and layout-aware rotations, allowing for more immersive experiences.

For more detailed information, you can check out the session What’s new in SwiftUI (14:33) and the Platforms State of the Union (41:37).