what new in swift 2026
Asked on 2026-06-13
1 search
Here are the main new things in Swift for WWDC 2026, based on What’s new in Swift and the Swift section in Platforms State of the Union:
Language and compiler improvements
anyAppleOSavailability: you can now condense Apple platform availability checks into a single platform name instead of repeating multiple OS names.@diagnoseattribute: new tooling for improving diagnostics.- Module selectors (
::): new syntax for accessing members across modules. - Better type checking performance: especially for complex expressions and SwiftUI
Viewbodies, with more actionable errors when type checking struggles. - Async in
defernow works: the limitation on awaiting insidedeferblocks is removed.
Everyday workflow improvements
- Warning control: you can suppress warnings in specific parts of code or promote warnings to errors where you want stricter enforcement.
- More flexible memberwise initializers: structs with a mix of internal and private properties now get a second memberwise initializer usable from other files in your project.
Libraries and APIs
- Swift Testing updates
- Subprocess 1.0
- Foundation updates
- New standard library additions
Swift across more platforms
- Swift–C interoperability improvements with
@C attribute - Swift-Java
- WebAssembly and JavascriptKit
- Embedded Swift continues to expand
- More work on beyond Apple platforms
Performance and advanced language features
- Performance tuning
- Optimizer control with:
@inline(always)@specialized
- Ownership system and noncopyable types
- Iterable protocol and borrow/mutate accessors
- New standard library types like
UniqueBox,UniqueArray, andRef
Future direction
- The session also covers the future of Swift, including ongoing open-source work and ecosystem development.
If you want, I can also give you a short “top 5 changes” summary or a section-by-section breakdown with timestamps.

What’s new in Swift
Join us for an update on Swift. Discover the latest language advancements, including updates for everyday ergonomics, improved concurrency, and safer high-performance code. Explore workflow and language interoperability improvements and updates in embedded Swift.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

What’s new in SwiftUI
Explore the latest additions to SwiftUI and discover how they can improve your apps. We’ll introduce a new Document protocol with direct disk access and snapshot-based diffing for building high-performance apps; new APIs for reordering content in lists, grids, and sections; and toolbar enhancements including visibility priority and auto-minimizing behavior. We’ll also cover expanded presentation APIs — including swipe actions on any view — plus AsyncImage caching improvements and lazy state initialization for Observable types.
