Swift Evolution Monthly — June ’22 Issue
WWDC22, new `@const` attribute, improved `some`, convenient Generic extensions, and Swift 6 feature flags for early adopters.
WWDC22 brought so many new APIs that despite me watching and summarizing over 20 sessions in just the first week, I still haven’t watched all sessions I marked as favorite yet and am still watching 5–10 sessions a week. But I’m almost done now and my overall impression is that this year we got a lot of developer ergonomics improvements both in SwiftUI & Xcode and even the biggest star of the conference — the new Charts framework — adds to that.
Apple engineers also did a great job of introducing some of the new Swift features that are shipping with Swift 5.7, some of which we have covered in past issues of this newsletter. Here are some you might be interested in:
- Plugins: Meet Swift Package plugins & Create Swift Package plugins
- Generics: Embrace Swift generics & Design protocol interfaces in Swift
- Concurrency: Eliminate data races using / Visualize and optimize Swift
- Actors: Meet distributed actors in Swift (+ last year’s talk on Swift actors)
- Regex: Meet Swift Regex & Swift Regex: Beyond the basics