UIKit now integrates Swift observation
Asked on 06/16/2025
1 search
UIKit now integrates Swift observation at its core, allowing for automatic tracking of observable objects in update methods like layoutSubviews
. This integration means that UIKit can automatically track any observable view reference, wire up dependencies, and invalidate the right views without requiring manual intervention. This feature is enabled by default in iOS 26, but you can back-deploy it to iOS 18 by adding the UIObservationTrackingEnabled
key to your Info.plist. For more details, you can refer to the session What’s new in UIKit (10:21).

What’s new in UIKit
Modernize your app with the latest APIs in UIKit, including enhanced menu bar support, automatic observation tracking, a new UI update method, and improvements to animations. We’ll also cover how you can include SwiftUI scenes in your UIKit app and explore SF Symbols, HDR color pickers, and more.

What’s new in Swift
Join us for an update on Swift. We’ll talk about workflow improvements that make you more productive, and new and modernized library APIs for fundamental programming tasks. We’ll show examples of Swift adoption throughout more layers of the software stack. Finally, we’ll explore new language features for both improving approachability of concurrency, and achieving peak performance when you need it.

Meet WebKit for SwiftUI
Discover how you can use WebKit to effortlessly integrate web content into your SwiftUI apps. Learn how to load and display web content, communicate with webpages, and more.