Announcing Swift 6.2.4

We are happy to announce the release of Swift 6.2.4.

Install Swift Toolchain

Release Notes

  • Swift
    • PR#86114 Fixed an issue that could result in some for-in loops that iterate over a variadic generic types and use continue or break statements to crash at runtime due to the compiler choosing incorrect jump destinations.

    • PR#86112 nonisolated(nonsending) isolation is now transferred from the context to closures that don’t otherwise assume parent isolation. In particular, this includes closures passed to @Sendable parameters and allows to avoid unnecessary isolation switches.

      For example:

@MainActor func test(_: nonisolated(nonsending) @Sendable () async -> Void) async {}

await test {
// The closure doesn't leave `@MainActor`.
}
25 Likes