Instance Property

representedElementCategory

The type of the item.

Declaration

var representedElementCategory: UICollectionView.ElementCategory { get }

Discussion

You can use the value in this property to distinguish whether the layout attributes are intended for a cell, supplementary view, or decoration view.

See Also

Identifying the Referenced Item

var indexPath: IndexPath

The index path of the item in the collection view.

var representedElementKind: String?

The layout-specific identifier for the target view.