What's new in concurrency?
Asked on 06/12/2025
2 searches
At WWDC, Apple introduced several updates and improvements to concurrency in Swift. Here are some of the key highlights:
-
Data Race Safety: Swift 6 introduces a language mode that achieves data race safety by default, turning potential data race issues into compile-time errors. This significantly improves the security and stability of apps by preventing data races, which are common errors in concurrent programming (What’s new in Swift).
-
Concurrency Language Changes: Swift 6.2 makes concurrency more approachable by allowing code to run on the main actor by default, reducing the risk of data races. When you start using async functions, they run wherever they're called from, maintaining data safety. You can offload specific code to the background to run in parallel when ready to embrace concurrency (What’s new in Swift).
-
Swift Compiler Concurrency Settings: New language changes are opt-in and can be enabled under the Swift Compiler Concurrency section in Xcode Build Settings. Swift 6.2 includes migration tooling to help make necessary code changes automatically (What’s new in Swift).
-
Concurrency in SwiftUI: SwiftUI now runs code concurrently in various ways, and Swift 6.2 introduces a new language mode that marks all types in a module with the
@MainActor
annotation implicitly. This helps in managing concurrency in SwiftUI apps more effectively (Explore concurrency in SwiftUI). -
Concurrency in Xcode 16: Xcode 16 supports Swift 6's data race safety guarantees, turning data races into compile-time issues. Developers can incrementally enable warnings for each upcoming language feature to prepare their apps for Swift 6 (What’s new in Xcode 16).
These updates aim to make concurrency in Swift more robust and easier to adopt, providing developers with tools to write safer and more efficient concurrent code.

What’s new in Swift
Join us for an update on Swift. We’ll talk about workflow improvements that make you more productive, and new and modernized library APIs for fundamental programming tasks. We’ll show examples of Swift adoption throughout more layers of the software stack. Finally, we’ll explore new language features for both improving approachability of concurrency, and achieving peak performance when you need it.

What’s new in Swift
Join us for an update on Swift. We’ll briefly go through a history of Swift over the past decade, and show you how the community has grown through workgroups, expanded the package ecosystem, and increased platform support. We’ll introduce you to a new language mode that achieves data-race safety by default, and a language subset that lets you run Swift on highly constrained systems. We’ll also explore some language updates including noncopyable types, typed throws, and improved C++ interoperability.

What’s new in Xcode 16
Discover the latest productivity and performance improvements in Xcode 16. Learn about enhancements to code completion, diagnostics, and Xcode Previews. Find out more about updates in builds and explore improvements in debugging and Instruments.