What is new in Swift 6?

Asked on 06/10/2025

1 search

Swift 6 introduces several new features and improvements aimed at enhancing safety, performance, and developer experience. Here are some of the key updates:

  1. Non-Copyable Types: Swift 6 introduces non-copyable types, which suppress the default copyability of Swift types. This is useful for scenarios requiring unique ownership, such as managing system resources like files. Non-copyable types help prevent runtime issues like multiple writers to the same file and resource leaks. What’s new in Swift

  2. Data Race Safety: A new Swift 6 language mode provides compile-time data race safety, making concurrent programming safer by diagnosing data races at compile time. This mode is opt-in, allowing developers to adopt it module by module. Platforms State of the Union

  3. Embedded Swift: Swift 6 introduces a new language subset called Embedded Swift, designed for highly constrained systems like operating system kernels and microcontrollers. What’s new in Swift

  4. Swift Testing Framework: A new testing framework named Swift Testing has been introduced, offering expressive APIs to simplify writing tests. Platforms State of the Union

  5. GitHub Organization: Swift is moving to a new organization on GitHub, named swiftlang, which will host critical projects for the Swift ecosystem. What’s new in Swift

These updates reflect Swift's ongoing evolution to improve safety, performance, and ease of use for developers across various platforms and applications.