swiftUI features avalabel only in xcode26&

Asked on 06/17/2025

1 search

In Xcode 26, there are several new features available for SwiftUI. Some of these features include:

  1. Dynamic Linking Architecture for Previews: Xcode previews now have a new dynamic linking architecture that allows you to switch between a preview and build and run without needing to rebuild your project, increasing your iteration speed. You can also use state directly in previews using the @Previewable macro, eliminating the boilerplate of wrapping your preview content in a view.

  2. Text and Selection Management: SwiftUI now offers programmatic access to and control of text selection within text editing controls.

  3. Graphics Capabilities: New graphics capabilities include a mix modifier on color to blend colors and extended custom shader features with precompilation to avoid frame drops.

  4. Scrolling Enhancements: There are new APIs for fine-grained control of scroll views, including the ability to react to changes in content offsets and sizes.

  5. Improved Interoperability: SwiftUI has improved interoperability with UIKit and AppKit, allowing for better integration and use of gesture recognizers and animations across these frameworks.

For more detailed information, you can refer to the session What’s new in SwiftUI (14:17) from WWDC 2024.