Installation
Step 1 — Add the SDK dependency
Choose one of the following package managers:
- CocoaPods
- Swift Package Manager (SPM)
CocoaPods is a dependency manager for Cocoa projects. For installation and usage instructions, visit the official CocoaPods documentation. To integrate the iOS SDK into your Xcode project using CocoaPods, include unicocheck-ios in your Podfile:
pod 'unicocheck-ios'
Then install the dependencies from your terminal:
pod install
If you're running the project with a .xcodeproj file, open the project with the .xcworkspace file instead.
Swift Package Manager is a dependency manager for Swift projects, integrated with the Swift build system to automate downloading, compiling, and linking dependencies. To integrate the iOS SDK into your project using SPM, include the dependency in your Package.swift file:
dependencies: [
.package(url: "https://github.com/acesso-io/unico-check-ios.git", .upToNextMajor(from: "2.12.0"))
]
Step 2 — Add camera usage permission
To use the camera opening method, you must declare camera usage in Info.plist before compiling your application:
<key>NSCameraUsageDescription</key>
<string>Camera usage description</string>