# Menu bar

* With macOS Ventura, you can now build MenuBarExtras entirely in SwiftUI!&#x20;
* These can be defined alongside other scene types in your application and will always be shown in the menu bar while your app is running.&#x20;

{% tabs %}
{% tab title="Code" %}
**import** SwiftUI



**@main**

**struct** FrenchKit2022App: App {

&#x20;   **var** body: **some** Scene {

&#x20;       WindowGroup {

&#x20;           ContentView()

&#x20;       }

&#x20;       Window("Paris c'est aussi la FrenchKit !", id: "Sales") {

&#x20;           ParisDetailsChart()

&#x20;       }

&#x20;       .keyboardShortcut("9")

&#x20;       .defaultPosition(.topLeading)

&#x20;       .defaultSize(width: 420, height: 250)

&#x20;      &#x20;

&#x20;       <mark style="color:orange;">MenuBarExtra("Conference", systemImage: "lasso.and.sparkles") {</mark>

&#x20;           <mark style="color:orange;">SalesDetailsChart()</mark>

&#x20;           <mark style="color:orange;">Text("Result")</mark>

&#x20;       <mark style="color:orange;">}</mark>

&#x20;       <mark style="color:orange;">.menuBarExtraStyle(.window)</mark>

&#x20;   }

}
{% endtab %}

{% tab title="Entirely App" %}
```swift
import SwiftUI

@main
struct FrenchKit2022App: App {
    var body: some Scene {
        MenuBarExtra("Conference", systemImage: "lasso.and.sparkles") {
            SalesDetailsChart()
            Text("Result")
        }
        .menuBarExtraStyle(.window)
    }
}
```
{% endtab %}
{% endtabs %}



