Contents

NSCollectionLayoutBoundarySupplementaryItem

An object used to add headers or footers to a collection view.

Declaration

@MainActor class NSCollectionLayoutBoundarySupplementaryItem

Overview

A boundary supplementary item is a specialized type of supplementary item (NSCollectionLayoutSupplementaryItem). You use boundary supplementary items to add headers or footers to a section of a collection view or the entire collection view.

Each type of supplementary item must have a unique element kind. Consider tracking these strings together in a way that makes it straightforward to identify each element, for example:

Add boundary supplementary items to a section by setting that section’s boundarySupplementaryItems property:

Topics

Creating a boundary supplementary item

Specifying scrolling behavior

Specifying position

See Also

Appearance