layoutAttributesForCell(at:)
A convenience method for returning the layout attributes for a collection view cell.
Declaration
func layoutAttributesForCell(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?Parameters
- indexPath:
The index path for the cell whose layout attributes you want.
Return Value
The collection view layout attributes for the specified collection view cell.