levelsOfUndo
The maximum number of top-level undo groups the undo manager holds.
Declaration
var levelsOfUndo: Int { get set }Discussion
An integer specifying the number of undo groups. A limit of 0 indicates no limit, so the manager never drops old undo groups.
When ending an undo group results in the number of groups exceeding this limit, the manager drops the oldest groups from the stack. The default is 0.
If you change the limit to a level below the prior limit, the manager immediately drops old undo groups.