updateProperties
Asked on 06/17/2025
2 searches
The updateProperties
method is a new addition to UIKit, introduced to enhance the way views are updated. It is designed to work alongside the existing layoutSubviews
method, providing a more efficient way to update properties without forcing a layout pass. This method is particularly useful for populating content, applying styling, or configuring behaviors, and it automatically tracks any observable you read. You can also manually trigger it by calling setNeedsUpdateProperties
.
The updateProperties
method runs just before layoutSubviews
but is independent of it, allowing you to invalidate properties without forcing a layout and vice versa. This helps avoid extra passes and allows for finer-grained updates. It is part of the architectural improvements in UIKit, as discussed in the session What’s new in UIKit.

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.

Better together: SwiftUI and RealityKit
Discover how to seamlessly blend SwiftUI and RealityKit in visionOS 26. We’ll explore enhancements to Model3D, including animation and ConfigurationCatalog support, and demonstrate smooth transitions to RealityView. You’ll learn how to leverage SwiftUI animations to drive RealityKit component changes, implement interactive manipulation, use new SwiftUI components for richer interactions, and observe RealityKit changes from your SwiftUI code. We’ll also cover how to use unified coordinate conversion for cross-framework coordinate transformations.

SwiftUI essentials
Join us on a tour of SwiftUI, Apple’s declarative user interface framework. Learn essential concepts for building apps in SwiftUI, like views, state variables, and layout. Discover the breadth of APIs for building fully featured experiences and crafting unique custom components. Whether you’re brand new to SwiftUI or an experienced developer, you’ll learn how to take advantage of what SwiftUI has to offer when building great apps.