---
title: allowsDocumentSharing
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsdocument/allowsdocumentsharing
---

# allowsDocumentSharing

A Boolean value that indicates whether the document is shareable from the standard Share menu.

## Declaration

```swift
var allowsDocumentSharing: Bool { get }
```

## Discussion

Discussion When the value of this property is true, the owning document controller enables share options for this document. When the value is false, the document controller disables the Share menu when this document is selected.

## See Also

### Sharing the Document

- [prepare(_:)](appkit/nsdocument/prepare(_:).md)
- [share(with:completionHandler:)](appkit/nsdocument/share(with:completionhandler:).md)
