Were there any updates to compositional collection view layouts?

Generated on 7/31/2024

1 search

Yes, there were updates to compositional collection view layouts mentioned in the session "What’s new in UIKit" at WWDC 2024. Specifically, the updates include:

  1. Automatic Appearance Updates: Cells in UI collection view list sections now automatically update their appearance based on the list environment trait, removing the need for manual reconfiguration when the list appearance changes (What’s new in UIKit).

  2. New Header and Footer Configurations: There are new constructors for UIBackgroundConfiguration for list cells, headers, and footers, which also update their appearance automatically from the list environment trait (What’s new in UIKit).

  3. Example from Files App: The Files app uses a UI collection view with compositional layout to display a list of locations, favorites, and tags in different styles depending on the context (portrait vs. landscape) (What’s new in UIKit).

Relevant Sessions