Installation
This guide covers how to install and set up the DocIDV iOS SDK in your project.
Integrate DocIDV SDK
Follow these steps to integrate the DocIDV library into your application.
Import SDK
The DocIDV SDK is available exclusively through Swift Package Manager (SPM).
- Copy the official SPM repository URL:
https://github.com/idnow/docidv-sdk-ios - In Xcode, navigate to
File>Add Package Dependencies...and paste the URL. - Choose the desired package version. We recommend selecting "Up to Next Major Version" to receive compatible updates automatically. Click
Add Package. - Add the
DocIDVPackage Products to your application's target. - Add additional features you need. Example, if you need eID, add
EID-Governikusto your application's target. - Click
Add Package.
📥 DocIDV is now imported into your project.
Note that Xcode has also imported several other libraries that our SDK depends on. You will find them in the Package Dependencies list in the Project Navigator.
Configure Your App
To use our SDK, you need to configure your project to allow the use of the camera and NFC.
Entitlements File
- Open your entitlements file (If you don't already have one, File > New File > Property List, and name it, e.g.,
YourApp.entitlements). - Add a new key
Near Field Communication Tag Reader Session Formatsof typeArray. - In this array, add an item:
- key:
Item 0 (Near Field Communication Tag Reading Session Format) - value:
Tag-Specific Data Protocol (TAG)
- key:
Info.plist File
- Open your main
Info.plistfile. - Add a new key
ISO7816 application identifiers for NFC Tag Reader Sessionof typeArray. - Add the following two strings to this array:
A00000045645444C2D3031A0000002471001
- Add an entry for
Privacy - NFC Scan Usage Descriptionthat describes why your app needs to use NFC. - Add an entry for
Privacy - Camera Usage Descriptionthat describes why your app needs to use the camera. - Add an entry for
Privacy - Photo Library Usage Descriptionthat describes why your app needs to store photos on the device. - If you use the video call feature, please add
Privacy - Microphone Usage Descriptionthat describes the use of the microphone for calls with an agent.
👏 You are now ready to integrate the DocIDV SDK.
Support
If you encounter installation issues:
- Search GitHub Issues
- Contact IDnow Support