From 77bb0e7bbbf666e9332429863ba5426345224a95 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 6 Oct 2024 13:44:56 +0200 Subject: [PATCH] Integrated the MenuBarView view into the MenuBarExtra component for the PiperApp app in the app target. --- Piper/Sources/App/PiperApp.swift | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Piper/Sources/App/PiperApp.swift b/Piper/Sources/App/PiperApp.swift index 6999af0..b8975a9 100644 --- a/Piper/Sources/App/PiperApp.swift +++ b/Piper/Sources/App/PiperApp.swift @@ -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") }