---
title: UICommandTagShare
framework: uikit
role: symbol
role_heading: Global Variable
path: uikit/uicommandtagshare
---

# UICommandTagShare

A value that identifies a command as a Share menu.

## Declaration

```swift
let UICommandTagShare: String
```

## Discussion

Discussion To create a Share menu, add UICommandTagShare to the propertyList of a UICommand or UIKeyCommand object. // Ensure that the builder is modifying the menu bar system. guard builder.system == UIMenuSystem.main else { return }

let shareCommand = UICommand(title: "Share",                              action: #selector(share(_:)),                              propertyList: UICommandTagShare)

let shareMenu = UIMenu(title: "", options: .displayInline, children: [shareCommand])

// Insert the menu into the File menu before the Close menu. builder.insertSibling(shareMenu, beforeMenu: .close)

## See Also

### Associating data

- [propertyList](uikit/uicommand/propertylist.md)
