---
title: undoActionName
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/undomanager/undoactionname
---

# undoActionName

The name identifying the undo action.

## Declaration

```swift
var undoActionName: String { get }
```

## Discussion

Discussion The undo action name. Returns an empty string (@"") if no action name has been assigned or if there is nothing to undo. For example, if the menu title is “Undo Delete,” the string returned is “Delete.”

## See Also

### Managing the action name

- [redoActionName](foundation/undomanager/redoactionname.md)
- [setActionName(_:)](foundation/undomanager/setactionname(_:)-cci9.md)
- [setActionName(_:)](foundation/undomanager/setactionname(_:)-8lzip.md)
