23 lines
635 B
Swift
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() }
|
|
}
|
|
}
|