MIDITimeTableCellView

@MainActor
open class MIDITimeTableCellView : UIView

Base cell view that shows on MIDITimeTableView. Has abilitiy to move, resize and delete.

  • Inset from the rightmost side on the cell to capture resize gesture.

    Declaration

    Swift

    @MainActor
    open var resizePanThreshold: CGFloat
  • Delegate that informs about editing cell.

    Declaration

    Swift

    @MainActor
    open weak var delegate: MIDITimeTableCellViewDelegate?
  • Custom items other than delete, when you long press cell.

    Declaration

    Swift

    @MainActor
    open var customMenuItems: [MIDITimeTableCellViewCustomMenuItem]
  • When cell’s position or duration editing, is selected.

    Declaration

    Swift

    @MainActor
    open var isSelected: Bool
  • Stable identity of the cell this view represents. Set by MIDITimeTableView on reloadData(); used to report edits by the cell’s stable id rather than its (possibly stale) array position. nil for a cell view that hasn’t been placed in a time table yet.

    Declaration

    Swift

    @MainActor
    open var cellID: MIDITimeTableCellID?
  • Reuse identifier used by MIDITimeTableView when pooling cell views.

    Declaration

    Swift

    @MainActor
    public private(set) var reuseIdentifier: String? { get }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open override var canBecomeFirstResponder: Bool { get }

Init

  • Undocumented

    Declaration

    Swift

    @MainActor
    public init(reuseIdentifier: String? = nil)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init?(coder aDecoder: NSCoder)
  • Called before a cell view is returned from the reuse pool.

    Declaration

    Swift

    @MainActor
    open func prepareForReuse()

Layout

  • Undocumented

    Declaration

    Swift

    @MainActor
    open override func layoutSubviews()

Gestures

  • Undocumented

    Declaration

    Swift

    @objc
    @MainActor
    public func didTap(tap: UITapGestureRecognizer)
  • Undocumented

    Declaration

    Swift

    @objc
    @MainActor
    public func didMove(pan: UIPanGestureRecognizer)
  • Undocumented

    Declaration

    Swift

    @objc
    @MainActor
    public func didResize(pan: UIPanGestureRecognizer)
  • Undocumented

    Declaration

    Swift

    @objc
    @MainActor
    public func didLongPress(longPress: UILongPressGestureRecognizer)
  • Undocumented

    Declaration

    Swift

    @objc
    @MainActor
    public func didPressDeleteButton()
  • Undocumented

    Declaration

    Swift

    @objc
    @MainActor
    public func menuControllerWillHideNotification()