Force RTL support for default alerts

UIActivityViewController forceRightToLeft is not working when device language is english. I want change RTL support for app default system alerts.

i also added key Localized resources can be mixed - Yes in info.plist

let activityViewController = UIActivityViewController(activityItems: [sText], applicationActivities: nil)

 activityViewController.view.semanticContentAttribute = .forceRightToLeft

 //activityViewController.view.transform = CGAffineTransformMakeScale(-1.0, 1.0) //Alert flip with text too which is wrong.

 self.present(activityViewController, animated: true, completion: nil)

If your app only support RTL language then you can make you development language to Arabic and removed all localized file and Localized resources from Info.plist. Also UIView.appearence.sementicContentAttribute code. Then try to build and run. All UI and share option are in RTL. A good example is here https://ahmedk92.github.io/2018/08/10/Arabic-As-A-Default-Language-for-Your-iOS-App.html

Force RTL support for default alerts
 
 
Q