<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIQRCodeDescriptor"
  },
  "title" : "CIQRCodeDescriptor"
}
-->

# CIQRCodeDescriptor

A concrete subclass of the Core Image Barcode Descriptor that represents a square QR code symbol.

```
class CIQRCodeDescriptor
```

## Overview

ISO/IEC 18004 defines versions from 1 to 40, where a higher symbol version indicates a
larger data-carrying capacity.
QR Codes can encode text, vCard contact information, or Uniform Resource Identifiers (URI).

## Topics

### Creating a Descriptor

[`init(payload:symbolVersion:maskPattern:errorCorrectionLevel:)`](/documentation/CoreImage/CIQRCodeDescriptor/init(payload:symbolVersion:maskPattern:errorCorrectionLevel:))

Initializes a QR code descriptor for the given payload and parameters.

[`descriptorWithPayload:symbolVersion:maskPattern:errorCorrectionLevel:`](/documentation/CoreImage/CIQRCodeDescriptor/descriptorWithPayload:symbolVersion:maskPattern:errorCorrectionLevel:)

Creates a QR code descriptor for the given payload and parameters.

### Examining a Descriptor

[`errorCorrectedPayload`](/documentation/CoreImage/CIQRCodeDescriptor/errorCorrectedPayload-swift.property)

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

[`symbolVersion`](/documentation/CoreImage/CIQRCodeDescriptor/symbolVersion-swift.property)

The version of the QR code which corresponds to the size of the QR code symbol.

[`maskPattern`](/documentation/CoreImage/CIQRCodeDescriptor/maskPattern-swift.property)

The data mask pattern for the QR code symbol.

[`errorCorrectionLevel`](/documentation/CoreImage/CIQRCodeDescriptor/errorCorrectionLevel-swift.property)

The error correction level of the QR code symbol.

### Error Correction Constants

[`CIQRCodeDescriptor.ErrorCorrectionLevel`](/documentation/CoreImage/CIQRCodeDescriptor/ErrorCorrectionLevel-swift.enum)

Constants indicating the percentage of the symbol that is dedicated to error correction.



---

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)