Disable Autolayout Localization Behavior (RTL - Right To Left Behavior )
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.
Objective c Disable Autolayout Localization Behavior for Arabic
You can force your UIView's direction by using UISemanticContentAttribute
i.e, to force Right to left direction, apply
[myView setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft];
On your view.
Cancel automatic RTL flip with autolayout when doing localization
I'm afraid I'll have to answer your question with another question... why would you not want that?
Right-to-left languages are expected to have right-to-left UI. The notions of forward and backward, leading and trailing are generally flipped when it comes to Right-to-left languages.
I would highly recommend you keep your UI flipped for these languages because this is what users expect; it's the best experience you can provide for Arabic, Hebrew, and other RTL languages.
In any case, if you do run into a case where the directionality must remain the same for any language: I'm assuming you're using Auto Layout/constraints since you're mentioning xibs and automatic flipping — all you have to do is change the constraint types from Leading to Left and Trailing to Right. 'Left' and 'Right' are still the same in RTL, as opposed to Leading and Trailing.
Auto RTL, LTR constraints behavior
As long as you only support English as a localization in your project, there should be no work needed to guarantee that your app will always be LTR, even with leading/trailing constraints.
Views are mirrored in RTL languages
You can set the 'direction' property of a spacing layout to "Left to Right" instead of the default: "Leading to trailing". This way the views will not be mirrored in RTL languages.
Unfortunately, you have to set this for every constraint of the views you don't want mirrored. Constraints added with code can be set this way:
[self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_photoView]-0-|" options:NSLayoutFormatDirectionLeftToRight metrics:nil views:views]];
Related Topics
How to Implement Localization in Swift Ui
Container View Getting Pushed Down as If It Had a Uinavigationbar
Loading a Welcome Screen (Splash Screen) Before Tabbarcontroller
Dragging Scnnode in Arkit Using Scenekit
Not Receiving Any Push Notification in Iphone
iPhone Opengl Es 2.0 - Pixel Perfect Textures
How to Make Uipageviewcontroller Reuse Controller Like Tableview Reuse Cell
Ios: How to Read an Audio File into a Float Buffer
Launching Phone/Email/Map Links in Wkwebview
Swift: Save Video from Nsurl to User Camera Roll
The Simulator Can't Be Launched Because It Is Already in Use
Objective-C Check If Subviews of Rotated Uiviews Intersect
Find Size Contributed by Each External Library on iOS
How to Draw a Non-Rectangle Uitextview
Why Are Animations on Bounds of an Uilabel Only Working When Increasing the Size