---
title: setNeedsCellUpdate()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uicollectionviewdropplaceholdercontext/setneedscellupdate()
---

# setNeedsCellUpdate()

Updates the contents of the placeholder cell.

## Declaration

```swift
func setNeedsCellUpdate()
```

## Discussion

Discussion Call this method when you want to update the contents of the placeholder cell. When you call this method, UIKit calls the update handler that you originally passed to the drop(_:toPlaceholderInsertedAt:withReuseIdentifier:cellUpdateHandler:) method when creating the cell.

## See Also

### Updating the Placeholder Cell

- [commitInsertion(dataSourceUpdates:)](uikit/uicollectionviewdropplaceholdercontext/commitinsertion(datasourceupdates:).md)
