---
title: cancelInteractiveMovement()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uicollectionview/cancelinteractivemovement()
---

# cancelInteractiveMovement()

Ends interactive movement tracking and returns the target item to its original location.

## Declaration

```swift
func cancelInteractiveMovement()
```

## Discussion

Discussion Call this method to cancel movement tracking and return the item to its original location. For example, when using a gesture recognizer to track interactions, call this method when the gesture is cancelled. Calling this method lets the collection view know to end the tracking process and return the item to its original location.

## See Also

### Reordering items interactively

- [beginInteractiveMovementForItem(at:)](uikit/uicollectionview/begininteractivemovementforitem(at:).md)
- [updateInteractiveMovementTargetPosition(_:)](uikit/uicollectionview/updateinteractivemovementtargetposition(_:).md)
- [endInteractiveMovement()](uikit/uicollectionview/endinteractivemovement().md)
