Repository Public
1import SwiftUI23@main4struct SPMessageApp: App {5 @StateObject private var model = AppModel()6 @Environment(\.scenePhase) private var scenePhase7 var body: some Scene {8 WindowGroup {9 RootView()10 .environmentObject(model)11 .tint(Theme.accent)12 .onChange(of: scenePhase) { _, p in model.active = p == .active }13 #if os(macOS)14 .frame(minWidth: 760, minHeight: 520)15 #endif16 }17 #if os(macOS)18 .defaultSize(width: 1120, height: 760)19 .commands { CommandGroup(replacing: .newItem) {} }20 #endif21 }22}23