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

1

7

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?

Barbette answered 24/5, 2017 at 19:3 Comment(0)
A
0

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

Armlet answered 24/5, 2017 at 19:8 Comment(2)
No. That will affect the orientation of the image for LTR language. Because my expected output for LTR is this. And I just want to have mirrored image for RTL language.Barbette
Click on 3rd or 4th image. Nothing much from the code side, it's just loading the image and filling imageView with that imageBarbette

© 2022 - 2024 — McMap. All rights reserved.