Documentation Language: Swift

Property

maxHistorySize

Maximum number of commands to retain in history.

@MainActor let maxHistorySize: Int

Discussion

When this limit is reached, the oldest commands are removed from the bottom of the undo stack to free memory.