<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: 18.2.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWritingToolsCoordinator/TextUpdateReason/undoRedo",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIWritingToolsCoordinatorTextUpdateReason@UIWritingToolsCoordinatorTextUpdateReasonUndoRedo"
  },
  "title" : "UIWritingToolsCoordinator.TextUpdateReason.undoRedo"
}
-->

# UIWritingToolsCoordinator.TextUpdateReason.undoRedo

An operation that changed the view’s text as part of an undo or
redo command.

```
case undoRedo
```

## Discussion

Specify this option when an undo or redo command initiated the
change to your view.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)