iOS SDK
Didit iOS SDK for identity verification
Native Swift screens for document capture, liveness and NFC. Add one package and call one method.
https://github.com/didit-protocol/sdk-ios.git
Pick the Right Didit SDK: Web, iOS, Android, Flutter & React Native · 3 min · YouTube
Install
Install
Use Swift Package Manager or CocoaPods.
// Package.swiftdependencies: [ .package(url: "https://github.com/didit-protocol/sdk-ios.git", from: "4.15.4")]// Add exactly one product to your target.product(name: "DiditSDK", package: "DiditSDK")
Pick exactly one variant
| Variant | Swift package product | CocoaPods | NFC | Minimum iOS |
|---|---|---|---|---|
All Default | DiditSDK | DiditSDK/All | Yes | iOS 15.0 |
Core Smallest | DiditSDKCore | DiditSDK/Core | No | iOS 13.0 |
NFC | DiditSDKNFC | DiditSDK/NFC | Yes | iOS 15.0 |
NFC means reading the chip in a passport or ID card with the phone. Every variant captures the document and the selfie automatically. Your code always writes import DiditSDK. The pod is a binary podspec in the repo, not on the public CocoaPods Trunk.
Start
Start a verification
Pass the session token from your server and handle three results.
Three results
.completedThe user finished. session.status is .approved, .pending or .declined..cancelledThe user closed the flow..failedSomething went wrong. Show error.localizedDescription.The SDK returns the status only. .pending means In Review. The full decision reaches your server by webhook.
import SwiftUIimport DiditSDKstruct ContentView: View { var body: some View { Button("Verify Identity") { DiditSdk.shared.startVerification( token: "session-token-from-backend" ) } .diditVerification { result in switch result { case .completed(let session): if session.status == .approved { /* grant access */ } case .cancelled: break case .failed(let error, _): print(error.localizedDescription) } } }}
Requirements
What you need
Six things to check before you ship.
NSCameraUsageDescription, NSMicrophoneUsageDescription and NSPhotoLibraryUsageDescription.NFCReaderUsageDescription, the NFC tag reading capability and the ISO7816 identifiers.Questions
Questions about the iOS SDK
Should I use the native iOS SDK or a WebView?
Does the iOS SDK read NFC chips?
Does my API key go in the app?
Does the SDK return the full result?
How do I install the Didit iOS SDK?
Which iOS SDK variant should I install?
Which Info.plist keys does the iOS SDK need?
Will Apple ask for anything during App Store review?
Can I test NFC reading in the iOS Simulator?
How do I close the verification from my app?
Which iOS SDK version supports biometric consent?
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Trusted by EU regulators
After a year of supervised testing, EU financial regulators confirmed that verifying with Didit is safer than checking an ID in person.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy
Learn Didit, one short video at a time
Start
Add the package
Create an account, get your sandbox key and add the package in Xcode.
Free sandbox. Credit applies to work-email sign-ups.