@main
struct MapApp: App {
- let persistenceController = PersistenceController.shared
+ let persistenceController = PersistenceController.shared
- var body: some Scene {
- WindowGroup {
- ContentView()
- .environment(\.managedObjectContext, persistenceController.container.viewContext)
- }
+ var body: some Scene {
+ WindowGroup {
+ MapEditorWindow()
+ .environment(\.managedObjectContext, persistenceController.container.viewContext)
+ .environmentObject(AppStore(initialState: AppState(), reducer: appStateReducer))
+ }.windowStyle(HiddenTitleBarWindowStyle()).commands {
+ SidebarCommands()
}
+ }
}