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

# overlay(forType:)

Returns the Core Animation layer associated with a layer type.

```
func overlay(forType layerType: String!) -> CALayer!
```

## Parameters

`layerType`

A layer type. See [Overlay Types](/documentation/Quartz/overlay-types).

## Return Value

The Core Animation layer.

---

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)