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

# init(_:systemImage:content:)

Creates a menu bar extra with a system image to use as the items label. The provided title will be used by the accessibility system.

## Declaration

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

## Parameters

- `titleKey`: The localized string key to use for the accessibility label of the item.
- `systemImage`: The name of a system image to use as the label.
- `content`: A View to display when the user selects the item.

## Discussion

Discussion The item defines the primary scene of an App. When this item is removed from the system menu bar by the user, the application will be automatically quit. As such, it should not be used in conjunction with other scene types in your App.

## See Also

### Creating a menu bar extra with an image

- [init(_:image:content:)](swiftui/menubarextra/init(_:image:content:).md)
- [init(_:image:isInserted:content:)](swiftui/menubarextra/init(_:image:isinserted:content:).md)
- [init(_:systemImage:isInserted:content:)](swiftui/menubarextra/init(_:systemimage:isinserted:content:).md)
