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

# UITableViewDropPlaceholderContext

An object for tracking a placeholder cell that you added to your table during a drop operation.

```
@MainActor protocol UITableViewDropPlaceholderContext : UIDragAnimating
```

## Overview

Don’t create instances of this class yourself. Instead, call [`drop(_:to:)`](/documentation/UIKit/UITableViewDropCoordinator/drop(_:to:)-3znax) from your drop coordinator object. That method inserts a placeholder cell into the table and returns a [`UITableViewDropPlaceholderContext`](/documentation/UIKit/UITableViewDropPlaceholderContext) object for managing that placeholder.

When you’re ready to swap a placeholder cell for a cell with the actual data, call the [`commitInsertion(dataSourceUpdates:)`](/documentation/UIKit/UITableViewDropPlaceholderContext/commitInsertion(dataSourceUpdates:)) method of the context object. To remove the placeholder cell without providing a replacement, call [`deletePlaceholder()`](/documentation/UIKit/UITableViewDropPlaceholderContext/deletePlaceholder()) instead.

## Topics

### Updating the placeholder cell

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

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

### Removing the placeholder cell

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

Removes an unneeded placeholder cell from the table view.

### Getting the drag item

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

The drag item represented by the placeholder cell.

## Relationships

### Inherits From

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

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

---

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)