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
- layer:
The sublayer to be inserted into the current layer.
- idx:
The index at which to insert
aLayer. This value must be a valid 0-based index into the Sublayers array.