---
title: UICollectionView.ElementCategory
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/uicollectionview/elementcategory
---

# UICollectionView.ElementCategory

Constants specifying the type of view.

## Declaration

```swift
enum ElementCategory
```

## Topics

### Constants

- [UICollectionView.ElementCategory.cell](uikit/uicollectionview/elementcategory/cell.md)
- [UICollectionView.ElementCategory.supplementaryView](uikit/uicollectionview/elementcategory/supplementaryview.md)
- [UICollectionView.ElementCategory.decorationView](uikit/uicollectionview/elementcategory/decorationview.md)

### Initializers

- [init(rawValue:)](uikit/uicollectionview/elementcategory/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Identifying collection view elements

- [elementKindSectionFooter](uikit/uicollectionview/elementkindsectionfooter.md)
- [elementKindSectionHeader](uikit/uicollectionview/elementkindsectionheader.md)
