Instance Property


The type of the item.


var representedElementCategory: UICollectionView.ElementCategory { get }


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.