Returns custom information about how to display the row at the specified location during the drop.
- iOS 11.0+
- Mac Catalyst 13.0+
The table view that is attempting to handle the drop.
The index path of the row currently being targeted by the drop.
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 before a drop occurs. For example, you might use this method to specify that only part of the cell's visible content should be used for the drop preview. If you do not implement this method, or if you return
nil, the drop 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.