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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software