<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "tvOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIMenu/init(title:image:identifier:options:children:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So6UIMenuC5UIKitE5title5image10identifier7options8childrenABSS_So7UIImageCSgSo0A10IdentifieraSgSo0A7OptionsVSaySo0A7ElementCGtcfc"
  },
  "title" : "init(title:image:identifier:options:children:)"
}
-->

# init(title:image:identifier:options:children:)

Creates a new menu with the specified values.

```
@MainActor @preconcurrency convenience init(title: String = "", image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], children: [UIMenuElement] = [])
```

## Parameters

`title`

The title of the menu.

`image`

The image to display next to the menu’s title.

`identifier`

The unique identifier for the menu. When creating standard menus for your app, specify an appropriate constant defined in [`UIMenu.Identifier`](/documentation/UIKit/UIMenu/Identifier-swift.struct). For custom menus, specify a custom reverse domain name value, or specify `nil` to let this method create a unique identifier for you.

`options`

Additional configuration options for the menu. For a list of possible values, see [`UIMenu.Options`](/documentation/UIKit/UIMenu/Options-swift.struct).

`children`

The menu elements in the menu. Specify leaf menu elements using [`UIMenuElement`](/documentation/UIKit/UIMenuElement) subclasses like [`UIAction`](/documentation/UIKit/UIAction), [`UICommand`](/documentation/UIKit/UICommand), or [`UIKeyCommand`](/documentation/UIKit/UIKeyCommand), and specify submenus using [`UIMenu`](/documentation/UIKit/UIMenu) objects. You may specify an empty array if the menu has no child menu elements.

## Discussion

---

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)