Skip to main content

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:

KeyEnglish (en)Comment
smart_capture_face_face_camera_directlyFace camera directlyFeedback for when face is angled away from camera
smart_capture_face_fill_ovalFill the ovalFeedback for when the face does not fill the oval (too small, not centered, etc.)
smart_capture_face_hold_stillHold stillFeedback for when the face is moving around
smart_capture_face_move_back_and_fill_ovalMove back and fill the ovalFeedback for when face is too close to camera
smart_capture_face_one_face_onlyOne face onlyFeedback for when more than one face is present
smart_capture_face_photo_capturedPhoto CapturedFeedback for when a photo is captured
smart_capture_face_position_in_ovalPosition your face within the ovalFeedback for when no face is detected or no other feedback applies
smart_capture_camera_permission_deniedCamera permission deniedFeedback for when camera permission is denied
smart_capture_face_not_detectedFace not detectedFeedback for when no face is detected
smart_capture_manual_capture_not_allowedManual capture not allowedFeedback to indicate that manual capture is not allowed
smart_capture_initialization_errorInitialization errorFeedback for when there is an initilization error
smart_capture_photo_capture_errorPhoto capture errorFeedback for when there is a photo capture error
smart_capture_unknown_errorUnknown errorFeedback for when there is an unknown error

How to Integrate

  1. Add a string catalog to your project.
  2. Include the keys listed above.
    1. Customise the message.
    2. Add additional languages.
      1. Introduce the translated copy for each key.
  3. Add an additional string catalog named InfoPlist.xcstrings to your project to localize the Info.plist file of your project.
    1. Add a key named NSCameraUsageDescription to customize the camera permission request message.