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).
Now if I set this image on a UIImageView
from Storyboard
, the image is not mirrored for RTL language. See image below:
When I don't set the image in
imageView
from storyboard but load the image in code & set it as theimageView
's image property the image is mirrored for RTL language. See image below:
But again if I set the image in
imageView
from storyboard and load the image in code & set it as theimageView
's image property the image is not mirrored for RTL language. See image below:
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?
In your first screenshot, the direction of the images are Left to Right Mirrors set them to Right to Left, Mirrors..