Instance Method

dragStateDidChange(_:)

Called when the drag state of the cell changes.

Declaration

func dragStateDidChange(_ dragState: UICollectionViewCell.DragState)

Discussion

Subclasses can override this method and use it to change the cell's appearance during drag and drop operations. For example, you might use this method to hide or disable controls that you do not want to be visible while the cell is being dragged. You can also use this method to alter the disabled appearance of the cell that remains in the collection view at the original location of the drag.

See Also

Managing Drag State Changes

enum UICollectionViewCell.DragState

Constants indicating the current state of the drag operation.