Contents

collectionView(_:canEditItemAt:)

Determines whether the specified item is editable.

Declaration

optional func collectionView(_ collectionView: UICollectionView, canEditItemAt indexPath: IndexPath) -> Bool

Parameters

  • collectionView:

    The collection view object requesting this information.

  • indexPath:

    An index path locating an item in the collection view.

Return Value

Returns true if the item is editable, false if it’s not. The default value is true.