SwiftGS1Barcode
SwiftGS1Barcode copied to clipboard
Processing twice each ai... is that how it is supposed to work?
Hi
I turn printDebugOutput
to true on GS1BarcodeParser.swift
.
When this method parseGS1ApplicationIdentifier(ai:data:)
runs, I get duplicate printings on console, like this
Parsing application identifier with identifier 01 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 17 of type Optional("Date")
Parsing application identifier with identifier 10 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 21 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 01 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 17 of type Optional("Date")
Parsing application identifier with identifier 10 of type Optional("AlphaNumeric")
Parsing application identifier with identifier 21 of type Optional("AlphaNumeric")
The library is parsing identifiers 1, 17, 10 and 21 two times and for some barcodes, it crashes after this.
Is it supposed to do this?
thanks