Instance Method

insertSublayer(_:at:)

Inserts the specified layer into the receiver’s list of sublayers at the specified index.

Declaration

func insertSublayer(_ layer: CALayer, at idx: UInt32)

Parameters

aLayer

The sublayer to be inserted into the current layer.

index

The index at which to insert aLayer. This value must be a valid 0-based index into the sublayers array.