Merge pull request #295 from wix/support-data-matrix

Added support for Data Matrix codes (iOS only)
This commit is contained in:
Seph Soliman 2020-06-14 09:11:12 -07:00 committed by GitHub
commit 2455dfc4a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1118,7 +1118,7 @@ didOutputMetadataObjects:(NSArray<__kindof AVMetadataObject *> *)metadataObjects
NSArray *supportedBarcodeTypes = @[AVMetadataObjectTypeUPCECode,AVMetadataObjectTypeCode39Code,AVMetadataObjectTypeCode39Mod43Code,
AVMetadataObjectTypeEAN13Code,AVMetadataObjectTypeEAN8Code, AVMetadataObjectTypeCode93Code,
AVMetadataObjectTypeCode128Code, AVMetadataObjectTypePDF417Code, AVMetadataObjectTypeQRCode,
AVMetadataObjectTypeAztecCode];
AVMetadataObjectTypeAztecCode, AVMetadataObjectTypeDataMatrixCode];
for (NSString* object in supportedBarcodeTypes) {
if ([currentType isEqualToString:object]) {
result = YES;