<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CALayer/insertSublayer(_:below:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CALayer(im)insertSublayer:below:"
  },
  "title" : "insertSublayer(_:below:)"
}
-->

# insertSublayer(_:below:)

Inserts the specified sublayer below a different sublayer that already belongs to the receiver.

```
func insertSublayer(_ layer: CALayer, below sibling: CALayer?)
```

## Parameters

`layer`

The sublayer to be inserted into the current layer.

`sibling`

An existing sublayer in the current layer. The layer in `aLayer` is inserted before this layer in the [`sublayers`](/documentation/QuartzCore/CALayer/sublayers) array, and thus appears behind it visually.

## Discussion

If `sublayer` is not in the receiver’s [`sublayers`](/documentation/QuartzCore/CALayer/sublayers) array, this method raises an exception.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)