Documentation Language: Swift

Method

redo()

Redo the command, re-applying its changes after undo.

@MainActor override func redo() async throws -> any Sendable

Return Value

The result of command re-execution

Discussion

This method should re-apply the command’s changes, typically producing the same result as the original execution. It should only be called after undo() and where canRedo returns true.