I was experiencing the same issue, but I managed to put together an admittedly "hacky" workaround--it does seem to work, though. The basic idea is to call undoNestedGroup to cancel all the changes the user might have made, but then make a subtle change on the model object in code, revert the change, and then call save on the context. This will force the model to think that there was a change, and it will update the parent form. Here's some code that illustrates the approach that I put in the Cancel button on the action sheet where the object is edited:
undoManager?.endUndoGrouping()
undoManager?.undoNestedGroup()
let title = request.title
request.title = request.title + " "
request.title = title
try! context.save()`
Hopefully this issue will get resolved or someone will come up with a much more elegant solution, but maybe this will work in the meantime.
Topic:
App & System Services
SubTopic:
General
Tags: