Were there any updates to compositional collection view layouts?
Asked on 07/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:
-
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).
-
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). -
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

What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.

What’s new in UIKit
Explore everything new in UIKit, including tab and document launch experiences, transitions, and text and input changes. We’ll also discuss better-than-ever interoperability between UIKit and SwiftUI animations and gestures, as well as general improvements throughout UIKit.

Demystify SwiftUI containers
Learn about the capabilities of SwiftUI container views and build a mental model for how subviews are managed by their containers. Leverage new APIs to build your own custom containers, create modifiers to customize container content, and give your containers that extra polish that helps your apps stand out.