<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionViewUpdateItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCollectionViewUpdateItem"
  },
  "title" : "NSCollectionViewUpdateItem"
}
-->

# NSCollectionViewUpdateItem

A description of a single change to make to an item in a collection view.

```
@MainActor class NSCollectionViewUpdateItem
```

## Overview

You do not create instances of this class directly. When updating its content, the collection view object creates them and passes them to the layout object’s [`prepare(forCollectionViewUpdates:)`](/documentation/AppKit/NSCollectionViewLayout/prepare(forCollectionViewUpdates:)) method, which can use them to prepare for the upcoming changes.

## Topics

### Accessing the Item Changes

[`indexPathBeforeUpdate`](/documentation/AppKit/NSCollectionViewUpdateItem/indexPathBeforeUpdate)

The index path of the item before the update.

[`indexPathAfterUpdate`](/documentation/AppKit/NSCollectionViewUpdateItem/indexPathAfterUpdate)

The index path of the item after the update.

[`updateAction`](/documentation/AppKit/NSCollectionViewUpdateItem/updateAction)

The action being performed on the item.

[`NSCollectionView.UpdateAction`](/documentation/AppKit/NSCollectionView/UpdateAction)

Constants indicating the type of action being performed on an item.

[`NSCollectionView.ScrollDirection`](/documentation/AppKit/NSCollectionView/ScrollDirection)

Constants indicating the scrolling direction for the layout.

### Constants

[`NSCollectionView.UpdateAction`](/documentation/AppKit/NSCollectionView/UpdateAction)

Constants indicating the type of action being performed on an item.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)