skip to Main Content

screen shot

As you can see my actions are mirrored while I set my application language to persian.
It just happening on iOS 15.4 older versions are works fine
my main text share is in persion and it’s not mirrored, just my actions are mirrored.
this is my code

        let textShare = [ text ]
        let activityViewController = UIActivityViewController(activityItems: textShare , applicationActivities: nil)
        activityViewController.popoverPresentationController?.sourceView = self.view
        self.present(activityViewController, animated: true, completion: nil)

I tired to re mirror the view but my share text is mirrored too:

activityViewController.view.transform = CGAffineTransform(a: -1, b: 0, c: 0, d: 1, tx: 0, ty: 0)

Any suggestions?

3

Answers


  1. i solve this issue by adding english language to project localization and force app to use my language into app delegate file without mirror any view
    enter image description here
    best regards

    Login or Signup to reply.
  2. 1- Right click on your project ".xcodeproj" file and choose "Show Package Contents"

    2- Right click on the "project.pbxproj" open it with "TextEdit".

    3- Find the "developmentRegion" key and set it to "en".
    enter image description here

    Done.

    Login or Signup to reply.
  3. Basically, it’s about DevelopmentRegion. I had added the development region in the project info.plist file and easily solve this issue by removing it.

    Remove Development localization from the info.plist if you open it as Property List.

    Property List

    or

    Remove CFBundleDevelopmentRegion from the info.plist if you open it as Source Code.

    Source Code

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search