DOT iOS Document 8.0.0

This guide describes how to migrate DOT iOS Document version 7.x to version 8.0. Only the most important changes are highlighted in this guide. For more details, see the iOS Samples.

Migration Steps

Deployment

  • Changed minimal required iOS version to iOS 12.0.
  • Changed minimal required Xcode version to Xcode 15.1.

Machine Readable Zone - check digit validity

  • Replace hasValidChecksum with checkDigit.isValid for all elements of type MrzElementWithCheckDigit and MrzDateElementWithCheckDigit.

Before

// Example of getting document number check digit validity in TD1 type
let checkDigitValidity = result.machineReadableZone!.td1!.documentNumber.hasValidChecksum

After

// Example of getting document number check digit validity in TD1 type
let checkDigitValidity = result.machineReadableZone!.td1!.documentNumber.checkDigit.isValid