Files
MikeMail/MikeMail/MikeMailApp.swift
T
2026-11-07 12:24:11 +01:00

23 lines
635 B
Swift

import SwiftUI
@main
struct MikeMailApp: App {
@State private var store: MailStore = {
#if DEBUG
if ProcessInfo.processInfo.arguments.contains("--ui-fixture") { return MailStore.uiFixture() }
#endif
return MailStore()
}()
var body: some Scene {
WindowGroup {
ContentView(store: store)
}
.defaultSize(width: 1200, height: 800)
WindowGroup("Nachricht", id: "message", for: String.self) { $id in
MessageDetailWindow(store: store, messageID: id)
}.defaultSize(width: 800, height: 650)
Settings { MailSettings() }
}
}