From 320ce31337ed60cae24a0374fa2d6d79237a6bfe Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 18 Feb 2025 23:39:51 -0800 Subject: feat: Development commit --- Sora/SoraApp.swift | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'Sora/SoraApp.swift') 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()) +} -- cgit v1.2.3