---
title: willCloseUndoGroup
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/notificationcenter/messageidentifier/willcloseundogroup
---

# willCloseUndoGroup

An identifier for a message about an undo manager preparing to close an undo group.

## Declaration

```swift
static var willCloseUndoGroup: NotificationCenter.BaseMessageIdentifier<UndoManager.WillCloseUndoGroupMessage> { 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.WillCloseUndoGroupMessage.

## 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)
- [didCloseUndoGroup](foundation/notificationcenter/messageidentifier/didcloseundogroup.md)
