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

前端 未结 4 884
予麋鹿
予麋鹿 2020-12-08 14:19

My application is localized in both English and Arabic.

Unfortunately, sometimes the autolayout behavior for localization is not required. By that, I mean reversing

4条回答
  •  误落风尘
    2020-12-08 15:02

    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

提交回复
热议问题