From c23df6d0480437928e66dfa313cb5380c52e8a62 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Fri, 4 Oct 2024 23:49:13 +0200 Subject: [PATCH] Implemented a basic layout for the menu bar extra for the PiperApp app in the app target. --- Piper/Sources/App/PiperApp.swift | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Piper/Sources/App/PiperApp.swift b/Piper/Sources/App/PiperApp.swift index 77789e4..b08661e 100644 --- a/Piper/Sources/App/PiperApp.swift +++ b/Piper/Sources/App/PiperApp.swift @@ -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) } }