Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

204
Views
Check if Apple LiveText is available?

I want to add apple live text support using a scan button. But I know that it is available for iOS 15+ and A12 processors and above. How do I check that in Swift?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Don't check for the iOS 15+ and processor A12+, check for the iOS 15's 'Live Text'feature support. Create a helper method with the following check that will return whether the device support live text or not


Sample:

var isSupported = true
if #available(iOS 15.0, *) {
    let check = UITextField().canPerformAction(#selector(UIResponder.captureTextFromCamera(_:)), withSender: nil)
    isSupported = check
} else {
    isSupported = false
}

print(isSupported)

Using the above condition will return false in the case of the device having iOS 15+ but not having hardware support.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!