Swift 6.1
This post describes the release process, and estimated schedule for Swift 6.1.
The Xcode 16.3 beta is out, which includes a new version of Swift. Swift 6.1 is a relatively small release that comes with bug fixes, quality of life improvements, and some features.
[…]
Starting in Swift 6.1, Apple has made it so that we no longer have to explicitly define the return type for our child tasks. Instead, Swift can infer the return type of child tasks based on the first task that we add to the group.
[…]
However, it’s kind of strange in a way that the compiler is using an extension on
Int
that’s defined in a module that I didn’t even import in this specific file.[…]
In Swift 6.1, we can opt into a new member visibility mode. This member visibility mode is going to work a little bit more like you might expect.
I really like proposals that make things work more intuitively. What this one does is expand the use of
nonisolated
so you can better control global isolation inference.[…]
I completely missed this one when it was pitched! It’s just a great little quality-of-life improvement for the
with*TaskGroup
family of APIs.[…]
Another area that has seen attention is around the
sending
keyword. There were a number of situations where the compiler was too conservative withsending
and 6.1 has gotten a lot better!
Previously:
Update (2025-04-01): Holly Borla:
Swift 6.1 is now available!
[…]
Swift’s concurrency model allows writing
nonisolated
on properties and functions to indicate that an API is safe to call from any concurrent context. Swift 6.1 extendsnonisolated
to types and extensions.[…]
Swift 6.1 includes a new attribute,
@implementation
, which can be used together with@objc
to provide an implementation for a declaration that has been imported from Objective-C. You can write@objc @implementation
on a Swiftextension
to replace an Objective-C@implementation
block.[…]
Swift 6.1 extends trailing comma support to tuples, parameter and argument lists, generic parameter lists, closure capture lists, and string interpolations[…]
Previously: