🔔 SDK version 5.0+ is out now. Please refer to the iOS SDK section of ZenID manual.
Xcode 16 or newer is required.
Tip
Code is worth a thousand words. See our sample app in ZenIDSample.
See iOS SDK Migration Guide in Feature Notes in ZenID manual.
We suggest targeting iOS 18.0. Technically this SDK should build for versions 15.0 and above.
Note that old out-of-support devices will likely lack sufficient processing capacity and memory to run the SDK with adequate performance.
- Clone the repo (requires Git LFS to be installed):
git clone https://github.com/ZenIDTeam/ZenID-ios.git - Copy
Libraries/ZenID.xcframework. All required models are now bundled inside the framework. - If you will use MS Liveness:
- Also include
Libraries/AzureAIVisionFaceUI.xcframework(~140MB additional). - Then copy the MS Liveness helper files from
MSLivenessHelpersas described in the manual.
- Also include
- Add the frameworks to your Xcode target with "Embed & Sign".
Required Info.plist keys:
- NSCameraUsageDescription (camera access)
- If using NFC (when requested): NFCReaderUsageDescription and the appropriate NFC entitlement (com.apple.developer.nfc.readersession.formats)
- If using MS Liveness: Network access is required. The SDK communicates directly with Microsoft Azure endpoints (not through api.zenid.cz). Ensure your firewall allows access to the Azure endpoint configured in your ZenID license. The Azure endpoint is created on demand for each customer.
Warning
You'll probably see the following error when trying to install via SPM: unexpectedly did not find the new dependency in the package graph: sourceControl(identity: zenid-ios, location: .
That's because this repo uses Git Large File Storage (LFS) and SPM doesn't work well with Git LFS.
You'll have to clone the repo manually (with Git LFS installed) and either add it as a local SPM package or copy the frameworks manually:
git clone https://github.com/ZenIDTeam/ZenID-ios.git
- Add the package from
https://github.com/ZenIDTeam/ZenID-ios - Choose package product:
- ZenID - Lite version (recommended if you don't need MS Liveness)
- ZenIDFull - Full version with MS Liveness support (includes AzureAIVisionFaceUI automatically, adds ~140MB)
- All required models are bundled inside ZenID.xcframework - no manual model management needed.
You must zoom in on the video stream to compensate for the minimum focus distance and required magnification. We created a method which do exactly this, so you don't have to write your own. This method is available since iOS 15 which covers iPhone 13 Pro and newer.
if #available(iOS 15.0, *) {
Camera.setRecommendedZoomFactor(for: device) // AVCaptureDevice
}ZenID is powered by Open Source libraries. See open-source-licenses.txt for the list and licensing information.