---
title: "custom(layoutSize:itemProvider:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nscollectionlayoutgroup/custom(layoutsize:itemprovider:)"
---

# custom(layoutSize:itemProvider:)

Creates a group of the specified size, with an item provider that creates a custom arrangement for those items.

## Declaration

```swift
class func custom(layoutSize: NSCollectionLayoutSize, itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider) -> Self
```
