<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICollectionView/ElementCategory",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UICollectionElementCategory"
  },
  "title" : "UICollectionView.ElementCategory"
}
-->

# UICollectionView.ElementCategory

Constants specifying the type of view.

```
enum ElementCategory
```

## Topics

### Constants

[`UICollectionView.ElementCategory.cell`](/documentation/UIKit/UICollectionView/ElementCategory/cell)

The view is a cell.

[`UICollectionView.ElementCategory.supplementaryView`](/documentation/UIKit/UICollectionView/ElementCategory/supplementaryView)

The view is a supplementary view.

[`UICollectionView.ElementCategory.decorationView`](/documentation/UIKit/UICollectionView/ElementCategory/decorationView)

The view is a decoration 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)