Documentation Language: Swift

Method

undo()

Undo the most recent command.

@MainActor func undo() async throws

Discussion

This method reverses the most recently executed command, moving it from the undo stack to the redo stack.