what's new in SwiftUI un 2024 ?

Asked on 03/12/2025

1 search

In 2024, SwiftUI introduced several new features and improvements to enhance app development across Apple's platforms. Here are some of the key updates:

  1. Fresh App Features: SwiftUI now includes a new TabView, beautiful mesh gradients, and snappy controls to help freshen up your apps. The sidebar in iOS 18 has become more flexible, allowing for easier navigation and interaction.

  2. Graphics and Visual Effects: New graphics capabilities include a mix modifier on colors for blending, and extended custom shader features to precompile shaders, reducing frame drops. SwiftUI also offers new APIs for fine-grained control over scroll views, including detecting view visibility changes due to scrolling.

  3. Swift 6 Language Mode: SwiftUI has improved its APIs to support the new Swift 6 language mode, which includes compile-time data race safety. Views in SwiftUI are now implicitly isolated to the main actor by default.

  4. Interoperability: Significant improvements have been made in the integration of gestures and animations, allowing for better interoperability with UIKit and AppKit. You can now use built-in or custom UI gesture recognizers in your SwiftUI view hierarchy.

  5. Xcode Previews: A new dynamic linking architecture in Xcode Previews uses the same build artifacts for previews and when you build and run, improving workflow efficiency. The new previewable macro allows for dynamic properties like state to be used directly in previews.

  6. Customizations: SwiftUI has gained new customizations for fine-tuning the look and feel of apps, such as custom hover effects for visionOS and new options for window behavior and styling in macOS.

  7. Text and Accessibility: SwiftUI now offers programmatic access to text selection within text editing controls and has enhanced accessibility features, including conditional modifier support and app intent-based accessibility actions.

For more detailed information, you can watch the session What’s new in SwiftUI.