I have enabled back gesture for my iOS application programatically. It is working fine for default region and language. App has feature through which, user can change language i.e custom localization. But for RTL languague like arabic , app content is right to left
[[UIView appearance] setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft];
But swiping to go back works from left side. And if I set device language to Arabic then it works from right side.
I want to achieve this programmatically, Please let me know, how can I set swipe direction for back gesture for RTL languages from app, no matter what is device's language.