<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/UndoManager/undoMenuTitle(forUndoActionName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUndoManager(im)undoMenuTitleForUndoActionName:"
  },
  "title" : "undoMenuTitle(forUndoActionName:)"
}
-->

# undoMenuTitle(forUndoActionName:)

Returns the localized title of the Undo menu command for the identified action.

```
func undoMenuTitle(forUndoActionName actionName: String) -> String
```

## Parameters

`actionName`

The name of the undo action.

## Return Value

The localized title of the undo menu item.

## Discussion

Override this method if you want to customize the localization behavior. This method is invoked by [`undoMenuItemTitle`](/documentation/Foundation/UndoManager/undoMenuItemTitle).

---

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)