diff options
| author | Fuwn <[email protected]> | 2025-06-14 05:11:25 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-14 05:11:25 -0700 |
| commit | 4919d34832b49cc93aa0b3468eb9cc6c3e321317 (patch) | |
| tree | 571b765ac3ce38236baef5397ccc1d213f146735 /Sora/App/SoraApp.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-4919d34832b49cc93aa0b3468eb9cc6c3e321317.tar.xz sora-testing-4919d34832b49cc93aa0b3468eb9cc6c3e321317.zip | |
feat: Development commit
Diffstat (limited to 'Sora/App/SoraApp.swift')
| -rw-r--r-- | Sora/App/SoraApp.swift | 31 |
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 + } +} |