import AppKit import SwiftUI /// Entry point. Scenes and glue only; business logic lives in the package. @main struct SprachmittlerApp: App { @NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate var body: some Scene { MenuBarExtra { StatusMenuView(delegate: appDelegate) } label: { Label("Sprachmittler", systemImage: "translate") } .menuBarExtraStyle(.menu) Settings { SettingsView( model: appDelegate.environment.settingsModel, onOpenDiagnostics: { appDelegate.showDiagnostics() }, onSaved: { appDelegate.environment.settingsDidChange() } ) } } }