<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocumentProperties/metadata",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDocumentProperties(py)metadata"
  },
  "title" : "metadata"
}
-->

# metadata

The document’s metadata.

```
@NSCopying var metadata: LPLinkMetadata { get set }
```

## Discussion

If you initialize the document properties object using [`init(url:)`](/documentation/UIKit/UIDocumentProperties/init(url:)-zeio), UIKit generates this metadata automatically. Typically, you don’t need to access the value of this property directly because UIKit updates the metadata asynchronously to display the latest information in the document header.

If you initialize the document properties object using [`init(metadata:)`](/documentation/UIKit/UIDocumentProperties/init(metadata:)), you can use this property to manually set metadata if it requires an update.

---

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)