---
title: allowsAutomaticShareMenu
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsdocumentcontroller/allowsautomaticsharemenu
---

# allowsAutomaticShareMenu

A Boolean value that the system uses to insert a Share menu in the File menu.

## Declaration

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

## Discussion

Discussion If your application has any NSDocument subclasses with autosavesInPlace set to true, the system defaults allowsAutomaticShareMenu to true. To disable the Share menu entirely, or to enable custom placement or construction of the share menu, override this property to return false in your app. The system may not insert a Share menu if allowsAutomaticShareMenu is true and NSDocumentController detects that the app has a Share menu.

## See Also

### Sharing

- [standardShareMenuItem()](appkit/nsdocumentcontroller/standardsharemenuitem().md)
