Comment on page
Get Started
Sybrin Identity makes use of cocoapods dependency manager for distributing our SDK. If you are not familiar with cocoapods, or require assistance in using cocoapods, visit https://guides.cocoapods.org/using/getting-started.html
Check out the example project at https://github.com/sybrin-innovations/Sybrin.SDK.Samples/tree/main/ios/identity
If you don’t have an existing Podfile, run the following command to create one:
your-project-directory
$ pod init
Add the following lines to your Podfile:
Sources
Pod
Illustration
your-project-directory/Podfile
source 'https://cdn.cocoapods.org/'
source 'https://github.com/sybrin-innovations/Sybrin.iOS.Pods.git'
your-project-directory/Podfile
pod 'Sybrin.iOS.Identity'
.png?alt=media&token=56cbe87d-fb59-48c5-828f-6e980dcee829)
Finally, run the following command:
your-project-directory
$ pod install
Remember to use the
.xcworkspace
from now on, to open your project in XCode!If you would like to update Sybrin Identity, in the future, use the following terminal command:
your-project-directory
$ pod update Sybrin.iOS.Identity
You can now open your project using the
.xcworkspace
as indicated by cocoapods.Sybrin Identity requires the camera permission, to scan identity documents. Add the
Privacy - Camera Usage Description
property to your Info.plist
file
Info.plist
Before using any of the Identity SDK features, you will need to initialize an instance of the
SybrinIdentityConfiguration
class and set the SybrinIdentity.shared.configuration
property.Import
LicenseKey
Configuration
Illustration
AppDelegate.swift
import Sybrin_iOS_Identity
AppDelegate.swift
let licenseKey: String = "Your license key"
AppDelegate.swift
let sybrinConfig = SybrinIdentityConfiguration(license: licenseKey)
// Set any further configuration options here
SybrinIdentity.shared.configuration = sybrinConfig

Setting the
SybrinIdentity.shared.configuration
property should only happen once. Trying to set the property after a configuration has already been set will fail.You can still make changes to the configuration object after it was set, but you can't set a new configuration.
Last modified 24d ago