Returns custom information about how to display the row at the specified location during the drag.
- iOS 11.0+
- Mac Catalyst 13.0+
The table view from which the drag operation originated.
The index path of the row being dragged.
UIDrag object containing information about how to customize the row's appearance. Return
nil to use the default appearance.
Use this method to customize the appearance of the row during drags. For example, you might use this method to specify that only part of the cell's visible content should be used for the drag preview. If you do not implement this method, or if you return
nil, the drag preview displays the row's visible content.
In your implementation, create a
UIDrag object and specify the custom preview information for the specified row. Use the parameters to specify the portion of the row that you want to display or to change the background color drawn beneath the row's contents.