# `GSNode.undoManager`

*Instance Property*

Returns the undo manager of the containing glyph.

## Declaration

```swift
var undoManager: UndoManager? { get }
```

```objc
@property (nonatomic, readonly) NSUndoManager * undoManager;
```

```python
undoManager() -> NSUndoManager
```

## See Also

### Undo

- [`GSNode.undoManagerCheck`](/Core/GlyphsCore/GSNode/undoManagerCheck) — Returns the undo manager of the containing glyph, if undo is enabled for the glyph.

