<!--
{
  "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/CIQRCodeDescriptor/errorCorrectedPayload-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIQRCodeDescriptor(py)errorCorrectedPayload"
  },
  "title" : "errorCorrectedPayload"
}
-->

# errorCorrectedPayload

The error-corrected codeword payload that comprises the QR code symbol.

```
var errorCorrectedPayload: Data { get }
```

## Discussion

QR Codes are formally specified in ISO/IEC 18004:2006(E).
Section 6.4.10 “Bitstream to codeword conversion” specifies the set of 8-bit codewords in the symbol
immediately prior to splitting the message into blocks and applying error correction.

During decode, error correction is applied and if successful, the message is re-ordered to the state immediately
following “Bitstream to codeword conversion.”

The `errorCorrectedPayload` corresponds to this sequence of 8-bit codewords.

---

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)