Skip to content

Demo code for the SmartCapture iOS SDK

gbgplc/smartcapture-ios-demo

Repository files navigation

FaceCamera Sample app

gbg-logo

Here you can find an implementation example for the FaceCamera module. You'll see a SwiftUI approach in FaceCameraSampleAppSwiftUI, and a UIKit implementation sample in the FaceCameraSampleApp app target. You can find SDK documentation here

Overview

The FaceCamera module provides a plug-and-play face capture component designed to simplify user identification workflows. This sample app demonstrates how to integrate and use the module in both SwiftUI and UIKit environments.

Setup

  1. Add the following XCFrameworks to /Frameworks directory and your project:

    • FaceCamera.xcframework
    • IDLiveFaceCamera.xcframework
    • IDLiveFaceIAD.xcframework
  2. In your target’s Frameworks, Libraries, and Embedded Content, ensure all three are set to Embed & Sign. embed-and-sign

  3. Add an additional string catalog named InfoPlist.xcstrings to your project to localize the Info.plist file of your project.

    • Add a key named NSCameraUsageDescription to customize the camera permission request message.
    <key>NSCameraUsageDescription</key>
    <string>This app requires camera access for identity verification.</string>
  4. Customise the localised messages for the face camera module following the keys provided in the documentation

  5. Import the module where needed:

    import FaceCamera

How to Run

  • Open FaceCameraSampleApp.xcodeproj
  • To try the SwiftUI implementation: select the FaceCameraSampleAppSwiftUI scheme and run.
  • To try the UIKit implementation: select the FaceCameraSampleApp scheme and run.

Requirements

  • iOS 15.0+
  • FaceCamera 1.0.2

Agreement

About

Demo code for the SmartCapture iOS SDK

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages