what's new in Swift from wwdc25?

Asked on 06/20/2025

1 search

At WWDC 2025, several new features and improvements were introduced in Swift 6.2. Here are some of the highlights:

  1. Development Workflow Improvements: Swift 6.2 brings enhancements to writing, building, and debugging code. The Swift extension in the VS Code Marketplace is now officially verified and distributed by Swift.org, with new features like background indexing for SwiftPM projects.

  2. Performance Enhancements: Swift 6.2 introduces inline arrays, allowing arrays with a fixed size to be stored on the stack, which can lead to significant performance improvements. A new span type provides a safe alternative to pointers for fast access to contiguous memory.

  3. Concurrency: The language has evolved to make concurrency more approachable. Swift 6.2 includes features that make it easier to write single-threaded code and offload CPU-intensive tasks to the background.

  4. Embedded Swift: Swift 6.2 expands the capabilities of Embedded Swift, a subset of Swift for constrained environments like firmware for embedded devices.

  5. C Interoperability: Improvements have been made to C interoperability, allowing Swift to interact more securely with C APIs. Swift's cross-language support has expanded to include packages for interfacing with Java and JavaScript code.

  6. SwiftUI Enhancements: SwiftUI has received updates such as new web APIs, rich text editing capabilities, and support for 3D charts, along with performance improvements.

For more detailed information, you can refer to the session What’s new in Swift.