Integrated the MenuBarView view into the MenuBarExtra component for the PiperApp app in the app target.

This commit is contained in:
Javier Cicchelli 2024-10-06 13:44:56 +02:00
parent 3ed1cc92f7
commit 77bb0e7bbb

View File

@ -29,20 +29,8 @@ struct PiperApp: App {
var body: some Scene {
MenuBarExtra {
VStack(alignment: .leading) {
Text("Some text goes here...")
.foregroundStyle(.primary)
Divider()
Button {
// ...
} label: {
Text("Some text goes here...")
.frame(maxWidth: .infinity)
}
}
.padding()
MenuBarView()
.modelContainer(container)
} label: {
Image(systemName: "circle.fill")
}