Embedding ¶
The capture module supports embedding in other viewcontrollers (e.g. via embed segue in a Storyboard). You can use it as is with the default UI, or you can hide the UI using the following code:
guard let vc = IDCameraController.instantiate() else { return nil }
(...)
let customViewContainer = UIView()
(...)
vc.setCustomViewOnCameraPreview(customView: customViewContainer)
After that, you can overlay it with your own custom UI. Because you are presenting the capture module on screen, you don't need to use non-UI mode in this case.
Check an sample app for embedding in folder: (idlive-face-capture-ios-X.X.X/idrnd_frameworks_delivery/CameraExample_Embedded_Mode