Passport photo and NFC
Scan the ePassport photo page, then read its identity data and chip portrait.
What users see
What your app receives. Photo capture returns the page image and parsed identity fields. The NFC read returns chip identity, the chip portrait, and separate authentication statuses.
Configure the host app
Add the camera usage description and NFCReaderUsageDescription. Enable the Near Field Communication Tag Reading capability and include TAG in com.apple.developer.nfc.readersession.formats. In the Info.plist ISO 7816 select identifiers array (com.apple.developer.nfc.readersession.iso7816.select-identifiers), add A0000002471001. Run on an NFC-capable iPhone.
Set the passport application identifier
Add this array to the app target’s Info.plist. The TAG entitlement is configured separately through Signing & Capabilities.
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
<string>A0000002471001</string>
</array>Scan the photo page
PassportPage contains jpeg and identity. The SDK retains the parsed MRZ in the returned page for the next step. Guide the user to keep the complete photo page in the frame.
Identomic.passportPage { result in
switch result {
case .success(let page):
// Keep page in memory for the NFC step.
case .failure:
// Present capture retry guidance.
}
}Read and inspect the chip
PassportChip includes identity, portraitPNG, passiveAuthentication, chipAuthentication, accessControlProtocol and ldsVersion. For passive authentication, supply an approved CSCA master list as a local PEM file.
do {
let chip = try await Identomic.readPassportChip(
for: page, trustList: approvedMasterListURL
)
// Evaluate both authentication statuses before downstream use.
} catch {
// Ask the user to reposition the phone or re-scan the page.
}Test on a physical iPhone
- Capture the complete passport photo page and keep the returned PassportPage for the NFC step.
- Read the same document and check that the identity and DG2 portrait are available.
- Test retry with an interrupted NFC session and test the outcome without a trust list.
Interpret authentication
Chip read success and authentication are separate results. Without a trust list, passive authentication reports NOT_PERFORMED. Keep failed, unperformed and unavailable states visible to the host workflow.

