Contents

NSCollectionLayoutGroupCustomItem

An item used in a group with a custom layout arrangement.

Declaration

@MainActor class NSCollectionLayoutGroupCustomItem

Overview

You use a custom item if you want to specify a layout with a custom arrangement, like a radial or diagonal layout. You use custom items within a group that’s created with custom(layoutSize:itemProvider:).

Instead of providing a layout size for the custom item, like you do when you create an NSCollectionLayoutItem, you provide a frame instead.

Topics

Creating a custom item

Getting the frame

Specifying stacking order

See Also

Advanced layouts