Instance Property

representedElementKind

The layout-specific identifier for the target view.

Declaration

var representedElementKind: String? { get }

Discussion

You can use the value in this property to identify the specific purpose of the supplementary or decoration view associated with the attributes. This property is nil if the representedElementCategory property contains the value UICollectionView.ElementCategory.cell.

See Also

Identifying the Referenced Item

var indexPath: IndexPath

The index path of the item in the collection view.