---
title: layerType
framework: diskimagekit
role: symbol
role_heading: Instance Property
path: diskimagekit/diskimage/layertype-swift.property
---

# layerType

The layer type of the disk image.

## Declaration

```swift
var layerType: DiskImage.LayerType? { get }
```

## Discussion

Discussion Returns cache for cache layers and overlay for overlay layers that are part of a stacked disk image. Returns nil for standalone images, for the base layer of a stack and for the stacked image itself.
