Apple expands SwiftUI with layout DSL and design tokens in SwiftUI 5

Design · 5 min read

Apple expands SwiftUI with layout DSL and design tokens in SwiftUI 5

At WWDC 2026 Apple revealed SwiftUI 5, a substantial overhaul focused on a declarative layout DSL that lets teams define responsive behaviors with fewer hacks. The new API emphasizes explicit breakpoints, container queries and a compact constraint syntax that mirrors what many web designers already expect.

Design tokens are now a first-class concept in SwiftUI: colors, type scales, spacing and component variants can be declared once and consumed across iOS, macOS, watchOS and visionOS. Tokens sync through Xcode Cloud and support environment overrides so designers can preview brand themes without code changes.

For design professionals the takeaway is clearer: fewer bridging layers between prototypes and production UI. Apple also shipped migration tooling in Xcode to convert common UIKit and legacy SwiftUI patterns to the new DSL, aiming to reduce churn for large apps.