---
title: "init(payload:rowCount:columnCount:eccVersion:)"
framework: coreimage
role: symbol
role_heading: Initializer
path: "coreimage/cidatamatrixcodedescriptor/init(payload:rowcount:columncount:eccversion:)"
---

# init(payload:rowCount:columnCount:eccVersion:)

Initializes a Data Matrix code descriptor for the given payload and parameters.

## Declaration

```swift
init?(payload errorCorrectedPayload: Data, rowCount: Int, columnCount: Int, eccVersion: CIDataMatrixCodeDescriptor.ECCVersion)
```

## Parameters

- `errorCorrectedPayload`: The data to encode in the Data Matrix code symbol.
- `rowCount`: The number of rows in the Data Matrix code symbol.
- `columnCount`: The number of columns in the Data Matrix code symbol.
- `eccVersion`: The doc://com.apple.coreimage/documentation/CoreImage/CIDataMatrixCodeDescriptor/ECCVersion-swift.enum for the Data Matrix code symbol.

## Return Value

Return Value  An initialized CIAztecCodeDescriptor instance or nil if the parameters are invalid
