iOS
How to install Orba One's Document and Video Capture for Identity Verification in Swift/iOS.
1. Platform Requirements
The SDK supports the following configurations:
Supports iOS 13+
Supports Xcode 11.5+
Supports the following presentation styles:
Fullscreen for iPhones
Fullscreen and Form Sheet for iPads
2. Install as a CocoaPod
To install the SDK using CocoaPods, add the following to the application's podfile:
pod 'OrbaOneSdk'Then run pod install to retrieve the sdk.
3. App Permissions
The Orba One SDK requires that the following permissions be added to the application's info.plist file:
<key>NSCameraUsageDescription</key>
<string>Required for Facial and Document capture.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Required for Audio capture.</string>4. Configuring the SDK
The Orba One SDK uses a publishable api key and an applicant id that you can obtain from your vendor dashboard. Your publishable api key will be needed in order to initialize the SDK in your mobile app. A sample implementation is shown below.
5. SDK Responses
The Orba One SDK exposes four callbacks to the mobile app. Each can be used to coordinate user feedback at various stages of the SDK's lifecycle.
6. Customizing the Flow
To customize the verification flow, you can make use of the SDK's config builder function. All customization must be done before starting the verification.
7. Customizing the Document Capture Step
To customize the document capture step, you can simply make use of the sdk's DocumentCaptureConfig builder class. By using this builder class, you are able to exclude specified documents and countries from the capture flow. All customization must be done before starting the flow.
8. Customizing the Theme
To ensure that Orba One fits in to your app's existing user experience, you can customize various colors by specifying a theme configuration.
colorPrimary: Defines the primary accent color for bullet points and highlights.
colorTextPrimary: Defines the text color of Titles.
colorButtonPrimary: Defines the background color of Primary Buttons and the text color of Secondary Buttons.
colorButtonPrimaryText: Defines the text color of Primary Buttons.
colorButtonPrimaryPressed: Defines the background color of Primary Buttons when pressed.
enableDarkMode: Defines the dark mode allowed setting for the SDK.
Sample App
A sample app demonstrating the Orba One SDK's implementation has been included. See the SampleApp directory for the Swift implementation.
Support
Please post all issues through Github. If your query involves sensitive information, you may contact us at [email protected] with the subject IOS ISSUE: .
Last updated
Was this helpful?