What's new in SwiftUI for 2025?

Asked on 06/15/2025

1 search

In 2025, SwiftUI introduced several exciting updates and enhancements:

  1. Widgets: Widgets are now available on Vision OS and CarPlay, with new customization options and APIs for relevance on WatchOS. There are also live activities on CarPlay and a push-based updating API.

  2. Web Content: SwiftUI now supports embedding web content directly in your app with a full set of WebKit APIs, including a new declarative WebView component and a Web Page API for programmatically controlling web content.

  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 create a rich text editor with customizable styling.

  4. 3D Charts: Swift Charts now supports 3D, allowing for interaction with the camera to rotate and zoom in on charts. This feature is also available in spatial environments on Vision OS.

  5. Performance Improvements: There are significant performance enhancements, especially in scrolling and list handling. Lists on macOS with over 100,000 items now load six times faster, and incremental changes like inserting new items are up to 16 times faster.

  6. RealityKit Integration: SwiftUI offers more APIs to work alongside RealityKit, simplifying interactions and supporting features like synchronizing animations and binding to components.

  7. Spatial Apps: For spatial apps, SwiftUI now includes features for creating volumetric experiences, with APIs for 3D layouts and dynamic bounds restrictions.

For more detailed information, you can check out the session What’s new in SwiftUI (19:12) and Platforms State of the Union (44:39).