<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DiskImageKit",
  "identifier" : "/documentation/DiskImageKit/DiskImage/LayerType-swift.struct/overlay",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "DiskImageKit"
    ],
    "preciseIdentifier" : "s:12DiskImageKit0aB0C9LayerTypeV7overlayAEvpZ"
  },
  "title" : "overlay"
}
-->

# overlay

An overlay layer that inherits its size from the layer beneath it.

```
static let overlay: DiskImage.LayerType
```

## Discussion

Overlay layers store all the changed blocks from the layers beneath it in the stack.
This variant inherits the size from the layer beneath it.
To create overlay layers with a specific block count, use [`overlay(blockCount:)`](/documentation/DiskImageKit/DiskImage/LayerType-swift.struct/overlay(blockCount:)) instead.

---

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)