---
title: UIDocumentProperties
framework: uikit
role: symbol
role_heading: Class
path: uikit/uidocumentproperties
---

# UIDocumentProperties

Information that UIKit uses to generate a document header for a navigation item’s title menu.

## Declaration

```swift
@MainActor class UIDocumentProperties
```

## Overview

Overview Assign a UIDocumentProperties object to your navigation item’s documentProperties property. UIKit uses this object to display a document header at the top of the title menu, which appears when a person taps the navigation item’s title. The document header displays information about the current document, such as its title, file type, and size.

Additionally, you can configure a set of sharing capabilities that allow people to share or drag and drop the document content from the document header: Set an activityViewControllerProvider to show the Share button. Set a dragItemsProvider to allow people to drag and drop the document by dragging the preview icon. note: Session 10069: Meet desktop-class iPad Session 10070: Build a desktop-class iPad app

## Topics

### Creating a document header

- [init(url:)](uikit/uidocumentproperties/init(url:)-zeio.md)
- [init(metadata:)](uikit/uidocumentproperties/init(metadata:).md)
- [metadata](uikit/uidocumentproperties/metadata.md)

### Generating a document preview

- [wantsIconRepresentation](uikit/uidocumentproperties/wantsiconrepresentation.md)

### Supporting drag and drop

- [dragItemsProvider](uikit/uidocumentproperties/dragitemsprovider.md)

### Supporting sharing

- [activityViewControllerProvider](uikit/uidocumentproperties/activityviewcontrollerprovider.md)

### Initializers

- [init(URL:)](uikit/uidocumentproperties/init(url:)-1rzp3.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Customizing the title menu

- [titleMenuProvider](uikit/uinavigationitem/titlemenuprovider.md)
- [documentProperties](uikit/uinavigationitem/documentproperties.md)
