what where the new features for swiftui in 2025

Asked on 06/18/2025

1 search

In 2025, SwiftUI introduced several new features and improvements. Here are some of the highlights:

  1. Performance Enhancements: SwiftUI saw significant performance improvements, particularly in scrolling and list handling. Incremental changes like inserting new items are up to 16 times faster, and larger lists see even bigger gains. This is a big step forward in SwiftUI scrolling performance (Platforms State of the Union).

  2. Web APIs: New web APIs were introduced, allowing apps to embed web content with WebKit's WKWebView API in SwiftUI. A new declarative webview component and a Web Page API for programmatically controlling web content were added (Platforms State of the Union).

  3. 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 (Platforms State of the Union).

  4. 3D Charts and Spatial Layout: Swift Charts now supports 3D, thanks to RealityKit, allowing for interaction with the camera to rotate and zoom in on charts. SwiftUI's layout tools can now be used to build 3D applications, supporting animations, resizing, and state management (Meet SwiftUI spatial layout).

  5. Widgets and Live Activities: Widgets have been expanded to Vision OS and CarPlay, with new APIs for relevance on WatchOS and live activities on CarPlay (What’s new in SwiftUI).

  6. RealityKit Integration: SwiftUI offers more APIs to work alongside RealityKit, simplifying interactions and allowing for features like presenting SwiftUI popovers directly from a RealityKit entity (What’s new in SwiftUI).

These updates make SwiftUI more powerful and flexible, enhancing its capabilities across all Apple platforms.