I looked into the DataMatrix format a little closer and although Apple has a definition for it in their CoreImage Filters, it is not yet supported. I tried implementing the code in a similar way that I implemented the QR Code generator, but I got this error:
inputBarcodeDescriptor of type CIDataMatrixCodeDescriptor is not yet supported
So I won’t be able to add it. At least not without investing in some other barcode generator library that might support it.