Customising the UI Pixelnetica™ Document Scanning SDK for Apple iOS
The ready-to-use screens ship with built-in English text. You can override any of it — to change wording or to localise into other languages — without touching the screens themselves.
How overriding works
Each piece of on-screen text is looked up by key in a strings table named PxUiStrings. The SDK checks your app’s main bundle first, and falls back to its own built-in default when you have not provided a value. So to override a string, you simply add a PxUiStrings.strings file to your app and define the keys you want to change — no API call required.
- Add a file named
PxUiStrings.stringsto your app target. - Define any of the keys below with your own text.
- Leave out the keys you are happy with — the SDK’s defaults apply.
/* PxUiStrings.strings (in your app) */
"camera-label-searching" = "Point the camera at a document";
"image-editor-title" = "Adjust edges";
Localising
Localisation uses the standard iOS mechanism: provide PxUiStrings.strings inside each language’s .lproj folder in your app (for example de.lproj/PxUiStrings.strings). iOS picks the right table for the user’s language, and the SDK resolves the keys from it.
The keys
| Key | Where it appears |
|---|---|
camera-init-failed | Shown when the camera cannot start |
camera-label-searching | Camera guidance: looking for a document |
camera-label-too-far | Camera guidance: move closer |
camera-label-too-distored | Camera guidance: reduce the viewing angle |
camera-label-capturing | Camera guidance: capturing |
camera-label-manual-focus | Camera guidance: tap-to-focus prompt |
image-editor-title | Title of the crop / page editor |
editor-banner-no-document-detected | Editor banner when no document was detected |
ocr-languages | OCR language picker: title |
ocr-select-languages-desc | OCR language picker: description |
ocr-avaiable-languages | OCR language picker: available-languages section |
ocr-no-languages-installed | OCR language picker: empty state |
ocr-search-languages | OCR language picker: search field |
The key names are matched exactly as written above (including their existing spelling) — copy them verbatim.
Per-screen behaviour
Text is cross-cutting; other behaviour is set per screen through that screen’s configuration object — PxUiCameraScreenConfiguration, PxUiPageCropScreenConfiguration, PxUiOcrEditorScreenConfiguration, and PxUiLanguagePickerScreenConfiguration. Each is documented in its screen’s guide.
Deeper visual theming (custom colours, fonts, icons) is not available for the ready-to-use screens in this release; build on the core engine if you need a bespoke look.