evermeer / PassportScanner

Scan the MRZ code of a passport and extract the firstname, lastname, passport number, nationality, date of birth, expiration date and personal numer.
BSD 3-Clause "New" or "Revised" License
457 stars 101 forks source link

How can I add in Objective-C Project #40

Closed jassimkm closed 4 years ago

jassimkm commented 4 years ago

Can you provide piece of code to integrate it in objective-c project

evermeer commented 4 years ago

Since objective C and Swift could be mixed in one project I would advice to create the passport scanner part in Swift.

I think it's possible to call it from objective C but I have never tried it. For doing that I think you should create a variant of the MyScanViewController that you see in the sample and call that from a class that works a little like the ViewController that you also see there. Just create functions and properties with the same signatures.

evermeer commented 4 years ago

If you have any more questions, then don't hesitate to ask.