summaryrefslogtreecommitdiff
path: root/Sora/App/SoraApp.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-14 05:11:25 -0700
committerFuwn <[email protected]>2025-06-14 05:11:25 -0700
commit4919d34832b49cc93aa0b3468eb9cc6c3e321317 (patch)
tree571b765ac3ce38236baef5397ccc1d213f146735 /Sora/App/SoraApp.swift
parentfeat: Development commit (diff)
downloadsora-testing-4919d34832b49cc93aa0b3468eb9cc6c3e321317.tar.xz
sora-testing-4919d34832b49cc93aa0b3468eb9cc6c3e321317.zip
feat: Development commit
Diffstat (limited to 'Sora/App/SoraApp.swift')
-rw-r--r--Sora/App/SoraApp.swift31
1 files changed, 31 insertions, 0 deletions
diff --git a/Sora/App/SoraApp.swift b/Sora/App/SoraApp.swift
new file mode 100644
index 0000000..cea526f
--- /dev/null
+++ b/Sora/App/SoraApp.swift
@@ -0,0 +1,31 @@
+import SwiftUI
+
+func debugPrint(
+ _ items: Any...,
+ separator: String = " ",
+ terminator: String = "\n"
+) {
+ #if DEBUG
+ Swift.print(items, separator: separator, terminator: terminator)
+ #endif
+}
+
+@main
+struct SoraApp: App {
+ @StateObject private var settings = SettingsManager()
+
+ var body: some Scene {
+ WindowGroup {
+ MainView()
+ .environmentObject(settings)
+ }
+
+ #if os(macOS)
+ SwiftUI.Settings {
+ SettingsView()
+ .environmentObject(settings)
+ .windowResizeBehavior(.enabled)
+ }
+ #endif
+ }
+}