Enable South African Driving License parser
The South African Driver's License (SA-DL) defines the standard for driver’s license barcode data across South Africa.
To enable it, look at the example below;
guard let decoderConfig = barkoderView.config?.decoderConfig else { return }
// Enable PDF417 symbology and South African Driving License parser
decoderConfig.pdf417.enabled = true
decoderConfig.formatting = SADL
// Beta: Parsers for data in South African IDs and South African Vehicle License Discs
decoderConfig.setcustomOption("SADL_decode_ID", value: 1)
decoderConfig.setcustomOption("SADL_decode_vehicle_disk", value: 1)
// Get SADL image - called when Barkoder returns a scan result
let sadlImage = decoderResults.first.flatMap { BarkoderHelper.sadlImage(fromExtra: $0.extra) }