Search code examples
iosobjective-ciphoneautolayoutconstraints

Disable Autolayout Localization Behavior (RTL - Right To Left Behavior )


My application is localized in both English and Arabic.

Unfortunately, sometimes the autolayout behavior for localization is not required. By that, I mean reversing the leading and trailing spaces. I want to override this behavior. Is there any way to do that?


Solution

  • To make leading act always as left (and trailing always like right), i.e. make it language independent, you can remove checkmark on "Respect language direction" on all constrains.

    You can find this checkmark in constrain settings in the Attributes inspector under "First Item" button.

    Respect language direction