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).