In iOS 15 you can double tap in a text field to reveal a "Scan Text" button which allows you to scan text from the camera. Is there a way to disable this ability on a specific UITextField programmatically?
I would investigate in this direction:
- subclass UITextField
- disable double tap for liveText by overriding
override func canPerformAction(action: Selector, withSender sender: AnyObject?) -> Bool { }
- which assumes you can find the Selector associated to LiveText…
More details here for similar case: