Contents

NSCollectionLayoutContainer

A protocol used to provide information about the size and content insets of a layout’s container.

Declaration

@MainActor protocol NSCollectionLayoutContainer : NSObjectProtocol

Overview

In a section provider, you use the container property of the layout environment (NSCollectionLayoutEnvironment) to get information about the container of the layout, such as its size and content insets. Knowing about the container’s size while rendering the layout’s sections helps you make decisions about how to display the layout.

Topics

Getting content size

Getting content insets

See Also

Size and spacing