---
title: didCloseUndoGroup
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/notificationcenter/messageidentifier/didcloseundogroup
---

# didCloseUndoGroup

An identifier for a message about an undo manager having closed an undo group.

## Declaration

```swift
static var didCloseUndoGroup: NotificationCenter.BaseMessageIdentifier<UndoManager.DidCloseUndoGroupMessage> { get }
```

## Discussion

Discussion Use this identifier with NotificationCenter’s addObserver(of:for:using:) or messages(of:for:bufferSize:) methods to observe messages of type UndoManager.DidCloseUndoGroupMessage.

## See Also

### Identifying undo manager messages

- [willUndoChange](foundation/notificationcenter/messageidentifier/willundochange.md)
- [didUndoChange](foundation/notificationcenter/messageidentifier/didundochange.md)
- [willRedoChange](foundation/notificationcenter/messageidentifier/willredochange.md)
- [didRedoChange](foundation/notificationcenter/messageidentifier/didredochange.md)
- [checkpoint](foundation/notificationcenter/messageidentifier/checkpoint.md)
- [didOpenUndoGroup](foundation/notificationcenter/messageidentifier/didopenundogroup.md)
- [willCloseUndoGroup](foundation/notificationcenter/messageidentifier/willcloseundogroup.md)
