Documentation Language: Swift

Initializer

init(maxHistorySize:)

Creates a new command stack with the specified history size.

@MainActor init(maxHistorySize: Int = 50)

Parameters

maxHistorySize

Maximum commands to retain (default: 50)