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

Swift 5 - It doesn't compile #39

Closed mjurfest closed 4 years ago

mjurfest commented 4 years ago

I am using Swift 5 and when trying to run the sample code on my project, it doesn't compile.

Errors:

Screen Shot 2019-12-17 at 16 41 05

@evermeer any idea why this is happening?

evermeer commented 4 years ago

The current version of the project was for Swift 4.2. I just made some changes to make it Swift 5 compatible. It's already pushed to GitHub. I will publish the cocoapod now.

mjurfest commented 4 years ago

It compiles now for Swift 5. Just a recommendation: update the README since it shows the old code and it has some compiling errors.