---
title: "init(_:content:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/commandmenu/init(_:content:)"
---

# init(_:content:)

Creates a new menu with a localized name for a collection of app- specific commands, inserted in the standard location for app menus (after the View menu, in order with other menus declared without an explicit location).

## Declaration

```swift
nonisolated init(_ name: LocalizedStringResource, @ContentBuilder content: () -> Content)
```
