MoathOthman / MOLH

Localization helper for iOS apps mainly focusing on the LTR/RTL issue
MIT License
117 stars 36 forks source link

UnFlip a UIView #38

Closed arunktinnovat closed 5 years ago

arunktinnovat commented 5 years ago

While switching the language to Arabic, I need a specific UIView and the UIControls inside it not to be flipped. I had tried setting the tag as -1. But it didn't worked. How to make it out?

MoathOthman commented 5 years ago

hey @arunktinnovat If you are using auto layout, then you can disable "respecting language direction" check this SO question https://stackoverflow.com/questions/19916926/disable-autolayout-localization-behavior-rtl-right-to-left-behavior

arunktinnovat commented 5 years ago

Thank you, selecting the UIControls and unchecking the 'Respect language direction' for all the leading and trailing constraints worked :)