import SwiftUI import CoreUtils class AppDelegate: NSObject, NSApplicationDelegate { private let appController = AppController() func applicationDidFinishLaunching(_ notification: Notification) { appController.start() } } @main struct MenuWhisperApp: App { @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate var body: some Scene { // Use a hidden window scene since we're using NSStatusItem for the menu bar WindowGroup { EmptyView() } .windowStyle(.hiddenTitleBar) .windowResizability(.contentSize) .defaultSize(width: 0, height: 0) } }