<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/IKImageBrowserView/setBackgroundLayer(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)IKImageBrowserView(im)setBackgroundLayer:"
  },
  "title" : "setBackgroundLayer(_:)"
}
-->

# setBackgroundLayer(_:)

The Core Animation layer used as the view’s background.

```
func setBackgroundLayer(_ aLayer: CALayer!)
```

## Parameters

`aLayer`

A `CALayer` instance.

## Discussion

The background layer can have sublayers. Additionally, the layers can also contain animations.

The layer is optional.

---

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)