---
title: "layer(forType:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/ikimagebrowsercell/layer(fortype:)"
---

# layer(forType:)

Returns a layer for the specified position.

## Declaration

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

## Parameters

- `type`: A string representing the layer location. See doc://com.apple.quartz/documentation/Quartz/cell-layer-positions for possible values.

## Return Value

Return Value The CALayer to display in the specified position.

## Discussion

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