---
title: layerCount
framework: coreimage
role: symbol
role_heading: Instance Property
path: coreimage/ciazteccodedescriptor/layercount-swift.property
---

# layerCount

The number of data layers in the Aztec code symbol.

## Declaration

```swift
var layerCount: Int { get }
```

## Discussion

Discussion Combined with isCompact, the number of data layers determines the number of modules in the Aztec Code symbol. Valid values range from 1 to 32. Compact symbols can have up to 4 data layers. The number of data layers also determines the number of bits in each data codeword of the message carried by the Aztec Code symbol.

## See Also

### Examining a Descriptor

- [errorCorrectedPayload](coreimage/ciazteccodedescriptor/errorcorrectedpayload-swift.property.md)
- [isCompact](coreimage/ciazteccodedescriptor/iscompact-swift.property.md)
- [dataCodewordCount](coreimage/ciazteccodedescriptor/datacodewordcount-swift.property.md)
