Inserts the specified layer into the receiver’s list of sublayers at the specified index.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The sublayer to be inserted into the current layer.
The index at which to insert
aLayer. This value must be a valid 0-based index into the
Managing the Layer Hierarchy
An array containing the layer’s sublayers.
Inserts the specified sublayer below a different sublayer that already belongs to the receiver.
Inserts the specified sublayer above a different sublayer that already belongs to the receiver.