<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionElementCategory",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSCollectionElementCategory"
  },
  "title" : "NSCollectionElementCategory"
}
-->

# NSCollectionElementCategory

Constants specifying the type of element in the collection view.

```
enum NSCollectionElementCategory
```

## Topics

### Constants

[`NSCollectionElementCategory.item`](/documentation/AppKit/NSCollectionElementCategory/item)

The element is an item. Items represent the main content of your collection view.

[`NSCollectionElementCategory.supplementaryView`](/documentation/AppKit/NSCollectionElementCategory/supplementaryView)

The element is a supplementary view. Use supplementary views for single views that contain some data but are associated with an entire section. For example, use them to specify header or footer views for a section.

[`NSCollectionElementCategory.decorationView`](/documentation/AppKit/NSCollectionElementCategory/decorationView)

The element is a decoration view. Decoration views represent visual adornments that do not contain any data of their own.

[`NSCollectionElementCategory.interItemGap`](/documentation/AppKit/NSCollectionElementCategory/interItemGap)

The element is an inter-item gap. An inter-item gap element is a custom visual indicator that is displayed between items when dropping items into the collection view.



---

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)