---
title: endInteractiveMovement()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uicollectionview/endinteractivemovement()
---

# endInteractiveMovement()

Ends interactive movement tracking and moves the target item to its new location.

## Declaration

```swift
func endInteractiveMovement()
```

## Discussion

Discussion Call this method upon the successful completion of movement tracking for a item. For example, when using a gesture recognizer to track user interactions, call this method upon the successful completion of the gesture. Calling this method lets the collection view know to end tracking and move the item to its new location permanently. The collection view responds by calling the collectionView(_:moveItemAt:to:) method of its data source to ensure that your data structures are updated.

## See Also

### Reordering items interactively

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