MIDITimeTableMeasureLayer
open class MIDITimeTableMeasureLayer : CALayer
Draws a time signature measure with beat and subbeat bars.
-
Text layer that optionally shows bar number on it.
Declaration
Swift
public var textLayer: CATextLayer -
Shape layer that draws measure bars.
Declaration
Swift
public var shapeLayer: CAShapeLayer -
Draws bar numbers if set true. Defaults true.
Declaration
Swift
public var showsBarNumber: Bool -
Number of beats in the measure.
Declaration
Swift
public var beatCount: Int -
Number of grid subdivisions per beat, used for drawing the small snap ticks. Defaults 4.
Declaration
Swift
public var snapResolution: Int -
Number of bar to show in text layer.
Declaration
Swift
public var barNumber: Int -
Text and bar colors.
Declaration
Swift
public var tintColor: UIColor -
Rendering scale used for the bar-number text layer’s crispness. A plain
CALayerhas notraitCollectionof its own, so this is propagated down from the owningMIDITimeTableMeasureView‘straitCollection.displayScalerather than read here directly.Declaration
Swift
public var displayScale: CGFloat -
Initilizes layer.
Declaration
Swift
public override init() -
Undocumented
Declaration
Swift
public override init(layer: Any) -
Undocumented
Declaration
Swift
public required init?(coder aDecoder: NSCoder) -
Undocumented
Declaration
Swift
open override func layoutSublayers()