Implemented a basic layout for the menu bar extra for the PiperApp app in the app target.

This commit is contained in:
Javier Cicchelli 2024-10-04 23:49:13 +02:00
parent a2d46fc0ea
commit c23df6d048

View File

@ -31,10 +31,24 @@ struct PiperApp: App {
var body: some Scene { var body: some Scene {
MenuBarExtra { MenuBarExtra {
EmptyView() VStack(alignment: .leading) {
Text("Some text goes here...")
.foregroundStyle(.primary)
Divider()
Button {
// ...
} label: {
Text("Some text goes here...")
.frame(maxWidth: .infinity)
}
}
.padding()
} label: { } label: {
Image(systemName: "circle.fill") Image(systemName: "circle.fill")
} }
.menuBarExtraStyle(.window)
} }
} }