---
title: "init(frame:zIndex:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/nscollectionlayoutgroupcustomitem/init(frame:zindex:)"
---

# init(frame:zIndex:)

Creates a custom item with the specified frame and vertical stacking order in relation to other items in the group.

## Declaration

```swift
convenience init(frame: CGRect, zIndex: Int)
```

## See Also

### Creating a custom item

- [init(frame:)](uikit/nscollectionlayoutgroupcustomitem/init(frame:).md)
