---
title: "presentedItemDidChangeUbiquityAttributes(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsfilepresenter/presenteditemdidchangeubiquityattributes(_:)"
---

# presentedItemDidChangeUbiquityAttributes(_:)

Tells your object that the file or file package’s ubiquity attributes have changed.

## Declaration

```swift
optional func presentedItemDidChangeUbiquityAttributes(_ attributes: Set<URLResourceKey>)
```

## Parameters

- `attributes`: The set of ubiquity attributes that have changed. For information about valid ubiquity attributes, see the doc://com.apple.foundation/documentation/Foundation/NSFilePresenter/observedPresentedItemUbiquityAttributes property.

## Discussion

Discussion To specify the ubiquity attributes that trigger notifications, implement your file provider’s observedPresentedItemUbiquityAttributes property. If you do not implement this property, the system sends notifications when any ubiquity attribute changes. note: Changes to the ubiquity attributes don’t typically align with presentedItemDidChange() notifications.

## See Also

### Related Documentation

- [item(at:didChangeUbiquityAttributes:)](foundation/nsfilecoordinator/item(at:didchangeubiquityattributes:).md)

### Ubiquity Change Notifications

- [observedPresentedItemUbiquityAttributes](foundation/nsfilepresenter/observedpresenteditemubiquityattributes.md)
