Documentation Language: Swift

Property

canUndo

Indicates whether the command can be undone.

@MainActor override var canUndo: Bool { get }

Discussion

Some commands may not support undo operations, particularly those involving external resources or irreversible actions.