diff options
Diffstat (limited to 'Sora/SoraApp.swift')
| -rw-r--r-- | Sora/SoraApp.swift | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Sora/SoraApp.swift b/Sora/SoraApp.swift index 1fab837..0d59fcd 100644 --- a/Sora/SoraApp.swift +++ b/Sora/SoraApp.swift @@ -2,9 +2,25 @@ import SwiftUI @main struct SoraApp: App { + @StateObject private var settings = Settings() + var body: some Scene { WindowGroup { - ContentView() + MainView() + .environmentObject(settings) } + + #if os(macOS) + SwiftUI.Settings { + SettingsViewMacOS() + .environmentObject(settings) + } + .defaultSize(width: 400, height: 400) + #endif } } + +#Preview { + MainView() + .environmentObject(Settings()) +} |