NSWritingToolsCoordinator.TextUpdateReason.undoRedo
An operation that changed the view’s text as part of an undo or redo command.
Declaration
case undoRedoDiscussion
Specify this option when an undo or redo command initiated the change to your view.