Skip to content

veryfi/veryfi-lens-long-receipts-ios-demo

Repository files navigation

Swift 5 iOS 15.2 License: MIT

Veryfi Lens

  

Veryfi Lens is code (a framework) with UI for your mobile app to give it document capture superpowers in minutes.

Let Veryfi handle the complexities of frame processing, asset preprocessing, edge routing, and machine vision challenges in document capture. We have been at this for a long time and understand the intricate nature of mobile capture. That’s why we built Lens. Veryfi Lens is built by developers for developers; making the whole process of integrating Lens into your app fast and easy with as few lines as possible.

Veryfi Lens is a Framework: a self-contained, reusable chunks of code and resources you can import into you app.

Lens is built in native code and optimized for fast performance, clean user experience and low memory usage.

You can read further about Lens in Veryfi's dedicated page: https://www.veryfi.com/lens/

You can watch our video: Veryfi Lens

Table of content

  1. Veryfi Lens iOS Examples
  2. How to add Veryfi Lens to your project
  3. Using SPM
  4. How to run this project
  5. Other platforms
  6. Get in contact with our team

Veryfi Lens Long Receipts & Invoices iOS Example

This is an example of how to use Veryfi Lens Long Receipts & Invoices in your app, you can find the developer documentation here.

long

How to add Veryfi Lens Long Receipts to your project

Install from our private Cocoapods.

Add in your project Podfile file the Veryfi Lens Long Receipts iOS SDK dependency:

pod 'VeryfiLens-LongReceipts', '2.1.59.9'

Using Swift package manager

This project has setup by default cocoapods, so first remove cooadpods by:

  • Run pod deintegrate
  • Delete Podfile, Podfile.lock files and Pods folder if any
  • Delete LensLongReceiptsDemo.xcworkspace file
  • Then open the regular project file LensLongReceiptsDemo.xcodeproj and follow the instructions below...

In Xcode go to File -> Add package dependencies and in the search field put the package url https://repo.veryfi.com/shared/lens/veryfi-lens-spm.git

You'll be prompted to put Username and Password to download the package, you must use the same credentials (YOUR_USERNAME and YOUR_PASSWORD) created for cocoapods

How to run this project

Optional: Git credentials tool

If you want to avoid typing the credentials you set in the previous step everytime you run pod install run git credential approve and type in a single entry the following information:

protocol=https
host=repo.veryfi.com
path=shared/lens/veryfi-lens-podspec.git
username=YOUR_USERNAME
password=YOUR_PASSWORD

  • Clone this repository
  • Run pod install --repo-update to install VeryfiLens and its dependencies
  • Open the workspace within the project in Xcode
  • Replace credentials in ViewController with yours
let CLIENT_ID = "XXX" // replace XXX with your assigned Client Id
let AUTH_USERNAME = "XXX" // replace XXX with your assigned Username
let AUTH_APIKEY = "XXX" // replace XXX with your assigned API Key
let URL = "XXX" // replace XXX with your assigned Endpoint URL
  • Run the project

Other Lens iOS Examples

You can find some example projects, which are the different versions of Lens that we currently offer:

Other platforms

You can find these examples for Lens Android

We also support the following wrappers for hybrid frameworks:

If you don't have access to our Hub, please contact our sales team, you can find the contact bellow.

Get in contact with our sales team

Contact sales@veryfi.com to learn more about Veryfi's awesome products.