---
title: "presentedItemDidMove(to:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsfilepresenter/presenteditemdidmove(to:)"
---

# presentedItemDidMove(to:)

Tells your object that the presented item moved or was renamed.

## Declaration

```swift
optional func presentedItemDidMove(to newURL: URL)
```

## Parameters

- `newURL`: The URL containing the new path to the presented item.

## Discussion

Discussion Use this method to update the value returned by the presentedItemURL property of your object.

## See Also

### Related Documentation

- [presentedItemURL](foundation/nsfilepresenter/presenteditemurl.md)

### Handling Changes to Files

- [savePresentedItemChanges(completionHandler:)](foundation/nsfilepresenter/savepresenteditemchanges(completionhandler:).md)
- [accommodatePresentedItemDeletion(completionHandler:)](foundation/nsfilepresenter/accommodatepresenteditemdeletion(completionhandler:).md)
- [presentedItemDidChange()](foundation/nsfilepresenter/presenteditemdidchange().md)
