Skip to content

Preview View

From version 8 onwards, the preview management changed in the SDK to make it easier to integrate.

To improve flexibility in the preview screen, the optional preview screen has been removed.

To add a preview feature to your app you can follow the example from our sample app, where we provide an example with the same user interface.

Example can be found here: DocumentReaderPreview

Build the preview from the report returned by readDocument:

private func showPreview(for report: DocumentReaderReport) {
    documentImageView.image = report.idDocument.data?.docImageUIImage
    holderImageView.image = report.idDocument.rfid?.holderImageUIImage
        ?? report.idDocument.data?.holderImageUIImage
}