---
title: indexPathBeforeUpdate
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscollectionviewupdateitem/indexpathbeforeupdate
---

# indexPathBeforeUpdate

The index path of the item before the update.

## Declaration

```swift
var indexPathBeforeUpdate: IndexPath? { get }
```

## Discussion

Discussion The value of this property is nil for an action of type NSCollectionView.UpdateAction.insert.

## See Also

### Accessing the Item Changes

- [indexPathAfterUpdate](appkit/nscollectionviewupdateitem/indexpathafterupdate.md)
- [updateAction](appkit/nscollectionviewupdateitem/updateaction.md)
- [NSCollectionView.UpdateAction](appkit/nscollectionview/updateaction.md)
- [NSCollectionView.ScrollDirection](appkit/nscollectionview/scrolldirection.md)
