HI, Could you advise me?
I got problems to work with undomanager and core data. I used a sketch tutorial which released recently by Apple. I have tableview in other uiviewcontrols. For tableview, undomanager can work well. But, for sketching , undomanager can not work well.
When I triggered sketch command to create object and save in core data which it s followed its pattern from Apple's doc.
This s NOT ok. I had to clikc many times for undo or redo.
It s ok for the code add or remove object.
" self.undoManager.registerUndo(withTarget: self, selector:#selector(DrawingViewController.removeObject(_:)), object:object) "
"self.undoManager.registerUndo(withTarget: self, selector:#selector(DrawingViewController.addObject(_:)), object:object)"
I got quite confused why the performance's undomanger s very weird( when it works with Core data ).
Thank you so much
Best regards,