<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICollectionViewDropPlaceholderContext",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICollectionViewDropPlaceholderContext"
  },
  "title" : "UICollectionViewDropPlaceholderContext"
}
-->

# UICollectionViewDropPlaceholderContext

An object that contains information about a placeholder in the collection view.

```
@MainActor protocol UICollectionViewDropPlaceholderContext : UIDragAnimating
```

## Overview

You do not create instances of this class yourself. For each placeholder cell that you insert into the collection view, the drop coordinator provides you with an instance of this class. You use this context object later to remove the placeholder cell, either by committing the actual data to your data source object or by deleting the placeholder cell.

## Topics

### Updating the Placeholder Cell

[`func commitInsertion(dataSourceUpdates: (IndexPath) -> Void) -> Bool`](/documentation/UIKit/UICollectionViewDropPlaceholderContext/commitInsertion(dataSourceUpdates:))

Exchanges the placeholder cell for a cell with the final content.

[`func setNeedsCellUpdate()`](/documentation/UIKit/UICollectionViewDropPlaceholderContext/setNeedsCellUpdate())

Updates the contents of the placeholder cell.

### Removing the Placeholder Cell

[`func deletePlaceholder() -> Bool`](/documentation/UIKit/UICollectionViewDropPlaceholderContext/deletePlaceholder())

Removes an unneeded placeholder cell altogether from the collection view.

### Getting the Drag Item

[`var dragItem: UIDragItem`](/documentation/UIKit/UICollectionViewDropPlaceholderContext/dragItem)

The drag item being represented by the placeholder cell.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`UIDragAnimating`](/documentation/UIKit/UIDragAnimating)

---

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)