<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionLayoutGroupCustomItem/init(frame:zIndex:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCollectionLayoutGroupCustomItem(cm)customItemWithFrame:zIndex:"
  },
  "title" : "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.

```
convenience init(frame: NSRect, zIndex: Int)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)