Download CocoaPods
Add the Ver-ID-SDK-Identity pod to your Podfile:
pod 'Ver-ID-SDK-Identity', '~> 3.0'
In Terminal enter pod install
and press enter.
Copy the Ver-ID identity.p12 file in your Xcode project and include it in your app's target.
Place your password in your app's Info.plist:
<key>com.appliedrec.verid.password</key>
<string>your password goes here</string>
Create an instance of VerIDIdentity:
import VerIDSDKIdentity
do {
let identity = try VerIDIdentity(url: nil, password: nil)
} catch {
}
Copy the Ver-ID identity.p12 file in your Xcode project and include it in your app's target.
Create an instance of VerIDIdentity:
import VerIDSDKIdentity
do {
let identity = try VerIDIdentity(password: "your password goes here")
} catch {
}
Upload the Ver-ID identity.p12 online or store it in your app.
Create an instance of VerIDIdentity referencing the URL of the Ver-ID identity.p12 file:
import VerIDSDKIdentity
do {
guard let url = URL(string: "https://ver-id.s3.us-east-1.amazonaws.com/ios/com.appliedrec.verid.licenceclient/test_assets/Ver-ID%20identity.p12") else {
return
}
let identity = try VerIDIdentity(url: url, password: "your password goes here")
} catch {
}
Upload the Ver-ID identity.p12 online or store it in your app.
Place your password in your app's Info.plist:
<key>com.appliedrec.verid.password</key>
<string>your password goes here</string>
Create an instance of VerIDIdentity referencing the URL of the Ver-ID identity.p12 file:
import VerIDSDKIdentity
do {
guard let url = URL(string: "https://ver-id.s3.us-east-1.amazonaws.com/ios/com.appliedrec.verid.licenceclient/test_assets/Ver-ID%20identity.p12") else {
return
}
let identity = try VerIDIdentity(url: url)
} catch {
}
Create your own instance of SecIdentity.
Pass the identity to the VerIDIdentity initializer:
import Security
import VerIDSDKIdentity
lazy var secIdentity: SecIdentity = {
// Construct your SecIdentity instance
let identity: SecIdentity // Stub
return identity
}()
do {
let identity = try VerIDIdentity(identity: self.secIdentity)
} catch {
}
Create an instance of VerIDIdentity and pass it to VerIDFactory:
import VerIDSDKIdentity
import VerIDCore
do {
// See above
let identity = try VerIDIdentity(url: nil, password: nil)
// Construct VerIDFactory with your identity
let veridFactory = VerIDFactory(identity: identity)
// ... use veridFactory to create an instance of VerID
} catch {
}
link |
Stars: 1 |
Last commit: 9 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics