Help me catch up the updates of SwiftUI announced at WWDC

Asked on 06/13/2025

1 search

At WWDC, Apple announced several exciting updates to SwiftUI. Here are some of the key highlights:

  1. Web APIs: SwiftUI now includes new web APIs, allowing apps to embed web content more seamlessly. This includes a new declarative webview component and a Web Page API for programmatically controlling web content. These APIs are built with modern Swift technologies like observation and strict concurrency.

  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: SwiftUI now supports 3D charts, thanks to RealityKit. This allows for interactive 3D visualizations, including the ability to rotate and zoom in on charts.

  4. Performance Improvements: There are significant performance enhancements, particularly in scrolling and list updates. Incremental changes like inserting new items are up to 16 times faster, and larger lists see even bigger gains.

  5. Graphics Capabilities: New graphics capabilities include a mix modifier on colors for blending and extended custom shader features to precompile shaders, avoiding frame drops.

  6. Custom Containers: You can now create custom container views with capabilities similar to SwiftUI's built-in containers, allowing for more flexibility in app design.

  7. Drag and Drop Enhancements: Drag and Drop has been enhanced, allowing for more complex interactions, such as dragging multiple items using new modifiers.

  8. SwiftUI Performance Instrument: A new performance instrument in Xcode helps optimize SwiftUI code by analyzing view updates and identifying performance bottlenecks.

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