---
title: undoActionIsDiscardable
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/undomanager/undoactionisdiscardable
---

# undoActionIsDiscardable

A Boolean value that indicates whether the next undo action is discardable.

## Declaration

```swift
var undoActionIsDiscardable: Bool { get }
```

## Discussion

Discussion true if the action is discardable; false otherwise. Specifies that the latest undo action may be safely discarded when a document can not be saved for any reason. These are typically actions that don’t affect persistent state. An example might be an undo action that changes the viewable area of a document.

## See Also

### Using discardable undo and redo actions

- [setActionIsDiscardable(_:)](foundation/undomanager/setactionisdiscardable(_:).md)
- [redoActionIsDiscardable](foundation/undomanager/redoactionisdiscardable.md)
