<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIAztecCodeDescriptor/dataCodewordCount-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIAztecCodeDescriptor(py)dataCodewordCount"
  },
  "title" : "dataCodewordCount"
}
-->

# dataCodewordCount

The number of non-error-correction codewords carried by the Aztec code symbol.

```
var dataCodewordCount: Int { get }
```

## Discussion

Used to determine the level of error correction in conjunction with the number of data layers.
Valid values are 1 to 2048. Compact symbols can have up to 64 message codewords.

> Note: this value can exceed the number of message codewords allowed by the number of data
> layers in this symbol. In this case, the actual number of message codewords is 1024 fewer than
> this value and the message payload is to be interpreted in an application-defined manner.

---

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)