]> git.r.bdr.sh - rbdr/map/blame - Map/MapApp.swift
Update to support notes + new style
[rbdr/map] / Map / MapApp.swift
CommitLineData
5e8ff485
RBR
1//
2// MapApp.swift
3// Map
4//
5// Created by Ruben Beltran del Rio on 2/1/21.
6//
7
8import SwiftUI
9
10@main
11struct MapApp: App {
12 let persistenceController = PersistenceController.shared
13
14 var body: some Scene {
15 WindowGroup {
fdb4633d 16 MapEditorWindow()
5e8ff485
RBR
17 .environment(\.managedObjectContext, persistenceController.container.viewContext)
18 .environmentObject(AppStore(initialState: AppState(), reducer: appStateReducer))
14416762
RBR
19 }.windowStyle(HiddenTitleBarWindowStyle()).commands {
20 SidebarCommands()
21 }
5e8ff485
RBR
22 }
23}