Capturing Text From Camera Using SwiftUI | Kodeco, the new raywenderlich.com

Learn how to capture text from the iPhone camera into your SwiftUI app so your users can enter data more quickly and easily.


This is a companion discussion topic for the original entry at https://www.kodeco.com/28189776-capturing-text-from-camera-using-swiftui

Didn’t work — tapping on the camera icon did nothing. Is the code outdated?

hi Ben, I just ran the final project on my phone and it works once or twice, then stops responding. There’s an error message in the console:

AX Lookup problem - errorCode:1100 error:Permission denied portName:‘com.apple.iphone.axserver’

One forum said to dispatch the persons append to main, but that doesn’t get rid of the error message. Other forums said the message goes away by itself / when you restart the Mac. Another forum said to ignore the error. :woman_shrugging:

The location of the Live Text toggle has also moved, to General > Language & Region.

There’s a reddit discussion that might help. Also an SO post, which links to the reddit one. Both describe a different problem, where the camera goes haywire, but could be just an Apple thing.

Finally, this 2022 medium article seems to do the same as my tutorial, and says it works.

1 Like

Thank you. Turned out that I have to press on the button hard for 2-3 seconds, not tap on it as I’d normally do. Is it like that for you too?