---
title: NSCollectionLayoutGroupCustomItem
framework: appkit
role: symbol
role_heading: Class
path: appkit/nscollectionlayoutgroupcustomitem
---

# NSCollectionLayoutGroupCustomItem

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

## Declaration

```swift
@MainActor class NSCollectionLayoutGroupCustomItem
```

## Overview

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

- [init(frame:)](appkit/nscollectionlayoutgroupcustomitem/init(frame:).md)
- [init(frame:zIndex:)](appkit/nscollectionlayoutgroupcustomitem/init(frame:zindex:).md)

### Getting the frame

- [frame](appkit/nscollectionlayoutgroupcustomitem/frame.md)

### Specifying stacking order

- [zIndex](appkit/nscollectionlayoutgroupcustomitem/zindex.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Advanced layouts

- [NSCollectionLayoutGroupCustomItemProvider](appkit/nscollectionlayoutgroupcustomitemprovider.md)
