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 }
  • hasPreviousHistoryItem Extension method

    Undocumented

    Declaration

    Swift

    var hasPreviousHistoryItem: Bool { get }
  • hasNextHistoryItem Extension method

    Undocumented

    Declaration

    Swift

    var hasNextHistoryItem: Bool { get }
  • currentHistoryItem Extension method

    Undocumented

    Declaration

    Swift

    var currentHistoryItem: Item? { get }
  • append(_:) Extension method

    Undocumented

    Declaration

    Swift

    mutating func append(_ item: Item)
  • undo() Extension method

    Undocumented

    Declaration

    Swift

    mutating func undo() -> Item?
  • redo() Extension method

    Undocumented

    Declaration

    Swift

    mutating func redo() -> Item?