Called when the drag state of the cell changes.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
func dragStateDidChange(_ dragState: UICollection View Cell.Drag State)
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.