iOS 16+ devices showing odd titles for camera

135 Views Asked by At

My app is already up and running. And things are working fine. But I noticed different titles for camera screen specifically for iOS 16+ devices.

enter image description here

enter image description here

enter image description here

I have this simple code that we use for camera no alteration no extensions are made for picker controller too.

let imagePicker = UIImagePickerController()
    
    imagePicker.delegate = self
    imagePicker.modalPresentationStyle = .overCurrentContext

    let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
    
    alert.addAction(UIAlertAction(title: NSLocalizedString("Take photo".localized, comment: ""), style: .default, handler: { _ in
        #if targetEnvironment(simulator)
        #else
        imagePicker.sourceType = .camera
        imagePicker.cameraCaptureMode = .photo
        imagePicker.cameraDevice = .rear
        fbEvents.setButtonClickEvent(title: "ChangeProfileTakePhotoClickEvent", viewController: self)
        self.present(imagePicker, animated: true, completion: nil)
        #endif
        
    }))

someone can please help here?

1

There are 1 best solutions below

3
Mark Roberts On

As I understand it, your application has multilingual support.

NSLocalizedString("Take photo".localized, comment: "")

In the localization file, define a key and a value for each string constant that needs to be localized.

"Take photo" = "Take photo";