Mirrored actions on UIActivityViewController, swift, with persian language (iOS 15.4)

Viewed 135

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?

1 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 enter image description here best regards

Related