iOS SDK
The VLens iOS SDK embeds the full identity verification experience — national ID scanning, liveness detection, and face matching — directly into your iOS app. It supports both SwiftUI and UIKit and uses ARKit face tracking for liveness.
Liveness detection requires a TrueDepth camera (iPhone X and later, excluding SE models). Devices without TrueDepth will fail unless allowNonTrueDepthFallback is enabled, in which case auto-capture fires every 2 seconds as a fallback.
Installation
Swift Package Manager (recommended)
- In Xcode, go to File → Add Package Dependencies…
- Enter the repository URL:
https://github.com/Vlens2021/vlens-ios-sdk - Select version 1.4.4 (or latest) and click Add Package
Required permissions
Add the following key to your Info.plist:
Quick start — SwiftUI
Quick start — UIKit
Configuration parameters
Verification modes
Full verification (default)
Liveness only
Sheet presentation
Runs the complete flow: ID front → ID back → liveness.
Custom branding
Pass customColors to the colors parameter of your VLensColors config.
Obtaining an access token
Call the Login API before launching the SDK:
Headers:
Body:
Extract data.accessToken from the response and pass it to the SDK.
What’s new in v1.4.4
- GIF background tinting applies accent colour across all start and loading screens
- Icon backgrounds tinted consistently behind ID and face vector images
loadingTitleLabeloutlets wired in NationalIdBack and ValidationMain screens
See all releases on GitHub.
Support
For issues or inquiries, contact support@vlenseg.com with your tenant name, the error message, and the SDK version.

