Language direction in Image-Set isn't taking effect when selecting image in Storyboard

710 Views Asked by At

I have an image set whose Direction (language direction) property is set to Left to Right. This means the image should be mirrored horizontally for right-to-left languages (i.e: Arabic, Hebrew).

Image Set's property

Now if I set this image on a UIImageView from Storyboard, the image is not mirrored for RTL language. See image below:

Image isn't mirrored

When I don't set the image in imageView from storyboard but load the image in code & set it as the imageView's image property the image is mirrored for RTL language. See image below:

Image is mirrored

But again if I set the image in imageView from storyboard and load the image in code & set it as the imageView's image property the image is not mirrored for RTL language. See image below:

Image isn't mirrored again

Question:

What's the problem with just Storyboard only? And why code can't override the behavior when image is set from Storyboard and also from code at the same time?

1

There are 1 best solutions below

2
On

In your first screenshot, the direction of the images are Left to Right Mirrors set them to Right to Left, Mirrors..