<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSFilePresenter/presentedItemDidChangeUbiquityAttributes(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSFilePresenter(im)presentedItemDidChangeUbiquityAttributes:"
  },
  "title" : "presentedItemDidChangeUbiquityAttributes(_:)"
}
-->

# presentedItemDidChangeUbiquityAttributes(_:)

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

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

## Parameters

`attributes`

The set of ubiquity attributes that have changed. For information about valid ubiquity attributes, see the [`observedPresentedItemUbiquityAttributes`](/documentation/Foundation/NSFilePresenter/observedPresentedItemUbiquityAttributes) property.

## Discussion

To specify the ubiquity attributes that trigger notifications, implement your file provider’s [`observedPresentedItemUbiquityAttributes`](/documentation/Foundation/NSFilePresenter/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 ``doc://com.apple.foundation/documentation/Foundation/NSFilePresenter/presentedItemDidChange()`` notifications.

## See Also

[`-  itemAtURL:didChangeUbiquityAttributes:`](/documentation/Foundation/NSFileCoordinator/item(at:didChangeUbiquityAttributes:))

Tells observing file providers that the item’s ubiquity attributes have changed.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)