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

# init(_:image:content:)

Creates a menu that generates its label from a localized string key and image resource.

## Declaration

```swift
nonisolated init(_ titleKey: LocalizedStringKey, image: ImageResource, @ContentBuilder content: () -> Content)
```

## Parameters

- `titleKey`: The key for the link’s localized title, which describes the contents of the menu.
- `image`: The name of the image resource to lookup.
- `content`: A group of menu items.

## See Also

### Creating a menu from content

- [init(_:content:)](swiftui/menu/init(_:content:).md)
- [init(content:label:)](swiftui/menu/init(content:label:).md)
- [init(_:systemImage:content:)](swiftui/menu/init(_:systemimage:content:).md)
