groupingLevel
The number of nested undo groups (or redo groups, if redo is the most recent operation) in the current event loop.
Declaration
var groupingLevel: Int { get }Discussion
An integer indicating the number of nested groups. If 0 is returned, there is no open undo or redo group.