Skip to content

USDriverLicenseScanner is a library for scanning US driver license details from your iPhone camera.

License

Notifications You must be signed in to change notification settings

tonyli508/USDriverLicenseScanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USDriverLicenseScanner

Swift Carthage compatible

USDriverLicenseScanner is a library for scanning US driver license details from your iPhone camera.

USDriverLicenseScanner

How to use

  • Make your UIViewController conformed to ScanDriverLicenseViewControllerDelegate
  • Implement func didScanResult(driverInfo: DriverLicense) (it will be callbacked with driver license info, once scanned)
  • Show scanner view
/// create
let scanner = ScanDriverLicenseViewController(
	title: "Scan Driver License", 
	focusDesc: "Align with the barcode on the back of your license.", 
	detailDesc: "By adding my license, I consent to a standard driver record check, powered by Checkr")
/// delegate
scanner.delegate = self
/// add cancel button
let navigation = UINavigationController(rootViewController: scanner)
scanner.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Cancel", style: .done, target: self, action: #selector(dismissSelf))
/// show
self.present(navigation, animated: true, completion: nil)

Or check out the example app.

Carthage

github "tonyli508/USDriverLicenseScanner" ~> 1.0.0

Check out the example code in Carthage branch as well, if you need more details.

About

USDriverLicenseScanner is a library for scanning US driver license details from your iPhone camera.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published