From 4919d34832b49cc93aa0b3468eb9cc6c3e321317 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 14 Jun 2025 05:11:25 -0700 Subject: feat: Development commit --- Sora/App/SoraApp.swift | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Sora/App/SoraApp.swift (limited to 'Sora/App') 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 + } +} -- cgit v1.2.3