MIDITimeTableHistoryRepresentable
public protocol MIDITimeTableHistoryRepresentable
Optional protocol for app-owned history stacks used with
MIDITimeTableViewDelegate.midiTimeTableViewShouldPushHistory(_:).
The core view intentionally does not own history snapshots because app models may include arbitrary domain data. This protocol provides a small, consistent shape for apps that want to keep their own undo/redo manager near their time table data.
-
Undocumented
Declaration
Swift
associatedtype Item -
Undocumented
Declaration
Swift
var history: MIDITimeTableHistoryStack<Item> { get set } -
hasPreviousHistoryItemExtension methodUndocumented
Declaration
Swift
var hasPreviousHistoryItem: Bool { get } -
hasNextHistoryItemExtension methodUndocumented
Declaration
Swift
var hasNextHistoryItem: Bool { get } -
currentHistoryItemExtension methodUndocumented
Declaration
Swift
var currentHistoryItem: Item? { get } -
append(_:Extension method) Undocumented
Declaration
Swift
mutating func append(_ item: Item) -
undo()Extension methodUndocumented
Declaration
Swift
mutating func undo() -> Item? -
redo()Extension methodUndocumented
Declaration
Swift
mutating func redo() -> Item?