---
title: "presentedSubitemDidChange(at:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsfilepresenter/presentedsubitemdidchange(at:)"
---

# presentedSubitemDidChange(at:)

Tells the delegate that the contents or attributes of the specified item changed.

## Declaration

```swift
optional func presentedSubitemDidChange(at url: URL)
```

## Parameters

- `url`: The URL of the item in the presented directory that changed. The item need not be at the top level of the presented directory but may itself be inside a nested subdirectory.

## Discussion

Discussion This method is relevant for applications that present directories. This might occur if the delegate manages the contents of a directory or manages a file that is implemented as a file package. Your implementation of this method should take whatever actions necessary to handle the change in content or attributes of the specified item. If the presented directory is a file package, the system calls the presentedItemDidChange() method if your delegate does not implement this method.

## See Also

### Handling Changes to a Presented Directory

- [accommodatePresentedSubitemDeletion(at:completionHandler:)](foundation/nsfilepresenter/accommodatepresentedsubitemdeletion(at:completionhandler:).md)
- [presentedSubitemDidAppear(at:)](foundation/nsfilepresenter/presentedsubitemdidappear(at:).md)
- [presentedSubitem(at:didMoveTo:)](foundation/nsfilepresenter/presentedsubitem(at:didmoveto:).md)
