UICollectionView의 performBatchUpdates() 를 대체하는 모던 API가 있어?
Asked on 2025-07-25
1 search
Yes, there is a modern API that can be used as an alternative to performBatchUpdates()
in UICollectionView
. In the session titled "What’s new in UIKit" at WWDC 2025, a new method called updateProperties
was introduced. This method is designed to support automatic observation tracking and can be used to update properties without forcing a layout, providing finer-grained updates. It complements, but does not replace, layoutSubviews
. You can use updateProperties
to populate content, apply styling, or configure behaviors, and it automatically tracks any observable you read.
For more details, you can refer to the session What’s new in UIKit (12:30).

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.

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

Explore concurrency in SwiftUI
Discover how SwiftUI leverages Swift concurrency to build safe and responsive apps. Explore how SwiftUI uses the main actor by default and offloads work to other actors. Learn how to interpret concurrency annotations and manage async tasks with SwiftUI’s event loop for smooth animations and UI updates. You’ll leave knowing how to avoid data races and write code fearlessly.