# `GSGlyph.undoManager`

*Instance Property*

The undo manager associated with edits to the glyph.

## Declaration

```swift
var undoManager: GSUndoManager? { get set }
```

```objc
@property (nonatomic, strong) GSUndoManager * undoManager;
```

```python
undoManager() -> GSUndoManager
setUndoManager_(undoManager: GSUndoManager)
```

## Discussion

Each glyph normally maintains an independent undo history. Assigning `nil` disables undo registration for operations that use this manager.

## See Also

### Undo

- [`GSGlyph.undoManagerCheck`](/Core/GlyphsCore/GSGlyph/undoManagerCheck) — The glyph’s undo manager when undo registration is enabled, or `nil` otherwise.

