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

# layer(forType:)

Returns a layer for the specified position.

```
func layer(forType type: String!) -> CALayer!
```

## Parameters

`type`

A string representing the layer location. See [Cell Layer Positions](/documentation/Quartz/cell-layer-positions) for possible values.

## Return Value

The `CALayer` to display in the specified position.

## Discussion

Subclasses can override this method to add a Core Animation layer to the cell

---

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)