---
title: "init(groupIsDiscardable:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/undomanager/didundochangemessage/init(groupisdiscardable:)"
---

# init(groupIsDiscardable:)

Creates a did undo change message.

## Declaration

```swift
init(groupIsDiscardable: Bool)
```

## Parameters

- `groupIsDiscardable`: A Boolean value that indicates whether the undo group is discardable.
