MoathOthman / MOLH

Localization helper for iOS apps mainly focusing on the LTR/RTL issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIStackviews Doesn't change its direction until restarting the app but anything else works well

merovic opened this issue · comments

no only its content, stackview itself is changing its direction very well

what type of contents you have ? @merovic , if you can fork the project and add an example to the demo and then post the link it would be great.

just 2 UILabels I added to the example project itself, I gave a background color to the UILabels and a leading constrain to the UIstackview to ensure that stack view changing its direction, and i found that stack view changes its direction without any problem but the 2 uilabels inside it doesn't change their direction until I kill the application and restart it again.

I will post a link for more details.

@merovic can you provide a link, I will debug the issue and might come up with a solution. thank you

That link contains the needed modification of MOLH Example Project to demonstrate the direction issue.

https://drive.google.com/open?id=1Z-3PKPeNh3JdLmHqtWoLRtea_HvPj540

@merovic looks you missed setting the tag to less than or equal maximumLocalizableTag which is by default -1 , the labels tags are 0 currently , hence they wont flip.
changing the tag should be applied to all views not just labels. so make sure you have that modified through your app.