summaryrefslogtreecommitdiff
path: root/Sora/SoraApp.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-18 23:39:51 -0800
committerFuwn <[email protected]>2025-02-19 00:00:29 -0800
commit320ce31337ed60cae24a0374fa2d6d79237a6bfe (patch)
treead1e93799efeb8e7a16521e3ab958c911f73f617 /Sora/SoraApp.swift
parentfeat: Initial commit (diff)
downloadsora-testing-320ce31337ed60cae24a0374fa2d6d79237a6bfe.tar.xz
sora-testing-320ce31337ed60cae24a0374fa2d6d79237a6bfe.zip
feat: Development commit
Diffstat (limited to 'Sora/SoraApp.swift')
-rw-r--r--Sora/SoraApp.swift18
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())
+}