Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliessolved.tooltip
Replied In
Enable Undo CoreData SwiftUI
Here's the solution, via -> https://stackoverflow.com/questions/73422048/enable-undo-coredata-swiftui
@Environment(\.undoManager) var undoManager
// ...
var body: some View {
// ...
.onAppear {
viewContext.undoManager = undoManager
}
}