Customization
There is not currently any support for customization. Some functional customization will be added at a later point. Visual/branding customization will not be supported.
Localization
Localization of messages and errors is supported using a String Catalog. The comprehensive list of localised keys is provided below:
Key | English (en) | Comment |
---|---|---|
smart_capture_face_face_camera_directly | Face camera directly | Feedback for when face is angled away from camera |
smart_capture_face_fill_oval | Fill the oval | Feedback for when the face does not fill the oval (too small, not centered, etc.) |
smart_capture_face_hold_still | Hold still | Feedback for when the face is moving around |
smart_capture_face_move_back_and_fill_oval | Move back and fill the oval | Feedback for when face is too close to camera |
smart_capture_face_one_face_only | One face only | Feedback for when more than one face is present |
smart_capture_face_photo_captured | Photo Captured | Feedback for when a photo is captured |
smart_capture_face_position_in_oval | Position your face within the oval | Feedback for when no face is detected or no other feedback applies |
smart_capture_camera_permission_denied | Camera permission denied | Feedback for when camera permission is denied |
smart_capture_face_not_detected | Face not detected | Feedback for when no face is detected |
smart_capture_manual_capture_not_allowed | Manual capture not allowed | Feedback to indicate that manual capture is not allowed |
smart_capture_initialization_error | Initialization error | Feedback for when there is an initilization error |
smart_capture_photo_capture_error | Photo capture error | Feedback for when there is a photo capture error |
smart_capture_unknown_error | Unknown error | Feedback for when there is an unknown error |
How to Integrate
- Add a string catalog to your project.
- Include the keys listed above.
- Customise the message.
- Add additional languages.
- Introduce the translated copy for each key.
- Add an additional string catalog named InfoPlist.xcstrings to your project to localize the Info.plist file of your project.
- Add a key named NSCameraUsageDescription to customize the camera permission request message.