Contents

UITableViewDropPlaceholderContext

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

Declaration

@MainActor protocol UITableViewDropPlaceholderContext : UIDragAnimating

Overview

Don’t create instances of this class yourself. Instead, call drop(_:to:) from your drop coordinator object. That method inserts a placeholder cell into the table and returns a 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:) method of the context object. To remove the placeholder cell without providing a replacement, call deletePlaceholder() instead.

Topics

Updating the placeholder cell

Removing the placeholder cell

Getting the drag item

See Also

Placeholder cells