---
title: "collectionView(_:canEditItemAt:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicollectionviewdelegate/collectionview(_:canedititemat:)"
---

# collectionView(_:canEditItemAt:)

Determines whether the specified item is editable.

## Declaration

```swift
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

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