I'd like to update the wordings shown in the view by presenting the VNDocumentCameraViewController. For example,
In this picture, I'd like to change,
Position the document in view -> Hello world
Cancel -> Stop
Auto -> Delete the button
I'm not sure what attributes VNDocumentCameraViewController has, so cannot override the values in the child class. How is it possible to override these button title to a different value?
The short answer is that you are not allowed to do this if you re releasing to the App Store; Apple provides the UI and since they don't provide a way to customize it you are supposed to leave it as is. The longer answer is that you can walk the view hierarchy and figure out which labels contain which text and then you can simply change the text on these UILabels. Its bad to do this for a lot of reasons: 1) It can get you rejected from the app store 2) The implementation can change between version, breaking your app 3) The text is localized so your changes will not work in other languages
With that warning, here is code to do a DFS search to find a view that matches a certain predicate, for instance, being a UILabel will some specific text.