window.makeKeyAndOrderFront(nil)
let renderView = MapRenderView(
- content: map.content ?? "", evolution: Stage.stages(state.selectedEvolution))
+ content: Binding.constant(map.content ?? ""),
+ evolution: Binding.constant(Stage.stages(state.selectedEvolution)))
let view = NSHostingView(rootView: renderView)
window.contentView = view
print("Cancel")
}
}
- case .deleteMap(map: let map):
+ case .deleteMap(let map):
let context = PersistenceController.shared.container.viewContext
context.delete(map)