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
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
best regards
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".
Done.
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 asProperty List
.or
Remove
CFBundleDevelopmentRegion
from the info.plist if you open it asSource Code
.