import AppKit import SwiftUI /// Entry point. Keep this file thin: scenes only, no business logic (ARCHITECTURE §3). @main struct SprachmittlerApp: App { @NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate var body: some Scene { MenuBarExtra("Sprachmittler", systemImage: "translate") { Button(String(localized: "Translate Clipboard Text")) { (NSApp.delegate as? AppDelegate)?.captureClipboardText() } Divider() Button(String(localized: "Set up Sprachmittler…")) {} .disabled(true) SettingsLink { Text(String(localized: "Settings…")) } Divider() Button(String(localized: "Quit Sprachmittler")) { NSApplication.shared.terminate(nil) } .keyboardShortcut("q") } .menuBarExtraStyle(.menu) Settings { // Replaced by Settings/SettingsView.swift. Text("Settings") .padding() .frame(width: 480, height: 320) } } }