canUndo
A Boolean value that indicates whether the manager has any actions to undo.
Declaration
var canUndo: Bool { get }Discussion
true if the manager has any actions to undo, otherwise false.
The return value doesn’t mean you can safely invoke undo() or undoNestedGroup()—you may have to close open undo groups first.