Whats is new in swiftui?

Asked on 06/16/2025

1 search

At WWDC 2024 and 2025, Apple introduced several exciting updates to SwiftUI. Here are some of the key highlights:

  1. New Features and Enhancements:

    • Graphics and Visuals: SwiftUI now supports beautiful mesh gradients and new tab views, enhancing the visual appeal of apps. There are also new graphics capabilities, such as a mix modifier on colors and extended custom shader features.
    • Web Content: WebKit now has a full set of SwiftUI APIs, including a new WebView for embedding web content directly in your app.
    • 3D and Charts: Support for 3D charts and enhanced Swift Charts capabilities were introduced, allowing for more dynamic data visualization.
  2. Performance Improvements:

    • Significant performance improvements have been made, especially for lists and scrolling. For example, lists on macOS with over 100,000 items now load six times faster.
    • New APIs provide fine-grained control over scroll views, including programmatic scrolling and content alignment.
  3. Interoperability and Integration:

    • Improved interoperability with UIKit and AppKit, allowing for better integration of gestures and animations. You can now use SwiftUI animations to animate UIKit views.
    • Enhanced support for RealityKit, making it easier to integrate SwiftUI with RealityKit for immersive experiences.
  4. Accessibility and Ease of Use:

    • New accessibility features, such as conditional modifier support and app intent-based accessibility actions.
    • Xcode previews have been improved with a new dynamic linking architecture, increasing iteration speed.
  5. Swift Language and API Updates:

    • The new Swift 6 language mode introduces compile-time data race safety, and SwiftUI APIs have been updated to support this.
    • Views in SwiftUI are now evaluated on the main actor, simplifying concurrency management.

For more detailed information, you can check out the session What’s new in SwiftUI (00:00:07) and Platforms State of the Union (35:23).