---
title: previousIndexPathsForInteractivelyMovingItems
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewlayoutinvalidationcontext/previousindexpathsforinteractivelymovingitems
---

# previousIndexPathsForInteractivelyMovingItems

An array of index paths representing the previous location of moving items in the collection view.

## Declaration

```swift
var previousIndexPathsForInteractivelyMovingItems: [IndexPath]? { get }
```

## Discussion

Discussion This property is filled when an interactive move is in progress or has just ended. Use this property together with the targetIndexPathsForInteractivelyMovingItems property to determine what changes you need to make to the affected items. For most other updates, the value of this property is nil.

## See Also

### Invalidating the Order of Items

- [targetIndexPathsForInteractivelyMovingItems](uikit/uicollectionviewlayoutinvalidationcontext/targetindexpathsforinteractivelymovingitems.md)
- [interactiveMovementTarget](uikit/uicollectionviewlayoutinvalidationcontext/interactivemovementtarget.md)
