faceterteam / PayCards_iOS

Credit card scanning for mobile apps
https://pay.cards/
Other
199 stars 53 forks source link

After update swift to 4.2 payCardsRecognizer don't calling #23

Open Thuran opened 5 years ago

Thuran commented 5 years ago

After update swift to 4.2 payCardsRecognizer don't calling, and i can't change library swift version because target don't appear in Pods project.

eli7ah commented 5 years ago

The same problem. Update please 😔

eli7ah commented 5 years ago

Log error on recognizing: CGImageCreate: invalid image bits/component: 8 bits/pixel 24 alpha info = kCGImageAlphaNoneSkipLast but func payCardsRecognizer(_ payCardsRecognizer: PayCardsRecognizer, didRecognize result: PayCardsRecognizerResult) don't calls

Thuran commented 5 years ago

I change result mode to .async and work for me recognizer = PayCardsRecognizer(delegate: self, resultMode: .async, container: self.view, frameColor: UIColor.white)

eli7ah commented 5 years ago

@Thuran Thanx a lot! Worked for me too