Contents

collectionView(_:cellForItemAt:)

Returns the visible cell object at the specified index path.

Declaration

func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell

Parameters

  • collectionView :

    The collection view the view controller displays.

  • indexPath :

    The index path that specifies the section and item number of the cell.

See Also

Configuring the Grid Collection View