]> git.r.bdr.sh - rbdr/map/blobdiff - Map/MapApp.swift
Update to support notes + new style
[rbdr/map] / Map / MapApp.swift
index 10b6bcb6ab9cbec9917ddbe7dad7341378a67167..14e5605792713e070c0a57a4790d6a79d20d0395 100644 (file)
@@ -9,12 +9,15 @@ import SwiftUI
 
 @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()
     }
+  }
 }