Contents

item(at:)

Returns the collection view item for the represented object at the specified index.

Declaration

func item(at index: Int) -> NSCollectionViewItem?

Parameters

  • index:

    The index of the collection view item.

Return Value

An instance of NSCollectionViewItem.

Discussion

Rather than using the NSCollectionViewItem instance returned by this method to determine the frame of the collection item’s view you should use content, it is significantly more efficient.

See Also

Legacy Collection View Support