are there any changes to collection views this year?

Asked on 08/29/2024

1 search

Yes, there are changes to collection views this year. In the session titled "What’s new in UIKit," it was mentioned that collection and table view APIs have been updated to make it easier to update your cells. All views in UI collection view list sections and UITableViews now have the list environment trait set. This trait describes the style of the list that the view is in, which helps ensure that cells are styled appropriately in any given list. UI list content configuration and UI background configuration now take advantage of this new trait, adjusting their properties to match the list environment from the configuration states trait collection. This removes the need to know the style of the list when configuring a cell, simplifying the code.

For more details, you can refer to the session What’s new in UIKit.