Implemented a basic layout for the menu bar extra for the PiperApp app in the app target.
This commit is contained in:
parent
a2d46fc0ea
commit
c23df6d048
@ -31,10 +31,24 @@ struct PiperApp: App {
|
||||
|
||||
var body: some Scene {
|
||||
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: {
|
||||
Image(systemName: "circle.fill")
|
||||
}
|
||||
.menuBarExtraStyle(.window)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user