26 lines
781 B
Swift
26 lines
781 B
Swift
import SwiftUI
|
|
|
|
/// Entry point. Keep this file thin: scenes only, no business logic (ARCHITECTURE §3).
|
|
@main
|
|
struct VorleserApp: App {
|
|
@NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
|
|
|
var body: some Scene {
|
|
MenuBarExtra("Vorleser", systemImage: "text.bubble") {
|
|
// Replaced by MenuBar/StatusMenu.swift in T7.5.
|
|
Text("Vorleser")
|
|
Divider()
|
|
Button("Quit Vorleser") { NSApplication.shared.terminate(nil) }
|
|
.keyboardShortcut("q")
|
|
}
|
|
.menuBarExtraStyle(.menu)
|
|
|
|
Settings {
|
|
// Replaced by Settings/SettingsView.swift in T5.3.
|
|
Text("Settings")
|
|
.padding()
|
|
.frame(width: 420, height: 240)
|
|
}
|
|
}
|
|
}
|