MIDITimeTablePlayheadView

@MainActor
public class MIDITimeTablePlayheadView : UIView

Draws a triangle, movable playhead that customisable with a custom shape layer or an image.

  • Current position on timetable. Based on beats.

    Declaration

    Swift

    @objc
    @MainActor
    public dynamic var position: Double { get set }
  • MIDITimeTableMeasureView’s width that used in layout playhead in timetable.

    Declaration

    Swift

    @MainActor
    public var measureBeatWidth: CGFloat { get set }
  • MIDITimeTableMeasureView’s height that used in layout playhead in timetable.

    Declaration

    Swift

    @MainActor
    public var measureHeight: CGFloat { get set }
  • MIDITimeTableHeaderCellView’s width that used in layout playhead in timetable.

    Declaration

    Swift

    @MainActor
    public var rowHeaderWidth: CGFloat { get set }
  • Optional image for playhead instead of default triangle shape layer.

    Declaration

    Swift

    @MainActor
    public var image: UIImage? { get set }
  • Shape layer that draws triangle playhead shape. You can change the default shape.

    Declaration

    Swift

    @MainActor
    public var shapeLayer: CAShapeLayer { get set }
  • Shape of the playhead triangle.

    Declaration

    Swift

    @MainActor
    public var shapeType: MIDITimeTablePlayheadShape
  • Playhead’s guide line color that draws on timetable.

    Declaration

    Swift

    @MainActor
    public var lineColor: UIColor { get set }
  • Playhead’s guide line height that draws on timetable. It’s best to match timetable’s content height.

    Declaration

    Swift

    @MainActor
    public var lineHeight: CGFloat { get set }
  • Playhead’s guide line width that draws on timetable. Defaults to a device hairline (one physical pixel). The default is refreshed for the actual display scale once the view enters a window (see didMoveToWindow); an explicit value assigned by the caller always wins.

    Declaration

    Swift

    @MainActor
    public var lineWidth: CGFloat { get set }
  • Delegate of playhead.

    Declaration

    Swift

    @MainActor
    public weak var delegate: MIDITimeTablePlayheadViewDelegate?
  • The hit are offset for panning.

    Declaration

    Swift

    @MainActor
    public var panningOffset: CGFloat

Init

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    @MainActor
    public required init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public convenience init()
  • Undocumented

    Declaration

    Swift

    @MainActor
    public override func layoutSubviews()
  • Undocumented

    Declaration

    Swift

    @MainActor
    public override func didMoveToWindow()
  • Undocumented

    Declaration

    Swift

    @MainActor
    public override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView?