MIDITimeTableViewEditedCellData
public struct MIDITimeTableViewEditedCellData : Equatable
Edited cell data. Holds the edited cell’s stable id and its index before editing, and new row index, position and duration data after editing.
Prefer id to locate the cell in your own data going forward — it stays valid regardless of
how many other cells were added, removed or reordered since. index is a snapshot of the
cell’s (row, array-position) at the moment the edit was reported and can go stale the instant
another edit in the same batch shifts it.
-
Stable identity of the edited cell.
Declaration
Swift
public var id: MIDITimeTableCellID -
The cell’s (row, array-position) snapshot at the moment the edit was reported. Can go stale; prefer
idto locate the cell going forward.Declaration
Swift
public var index: MIDITimeTableCellIndex -
Row index the cell now belongs to.
Declaration
Swift
public var newRowIndex: Int -
Position, in beats, the cell now starts at.
Declaration
Swift
public var newPosition: Double -
Duration, in beats, the cell now spans.
Declaration
Swift
public var newDuration: Double -
Undocumented
Declaration
Swift
public init(id: MIDITimeTableCellID, index: MIDITimeTableCellIndex, newRowIndex: Int, newPosition: Double, newDuration: Double)