Lnpopupcontroller: Labels' frames in RTL

Created on 1 Jun 2018  路  7Comments  路  Source: LeoNatan/LNPopupController

Hi,

Labels are rendered on artwork when I set language to a right to left language.

img_5e701a56e5c0-1

bug

All 7 comments

Hi, thanks for opening this issue. I will be traveling to WWDC and will take a week of vacation after. I will look at this when I am back.

@LeoNatan Hi, Any chance to get this fixed?

I will take a look.

I found the problem. Replace this line:

https://github.com/LeoNatan/LNPopupController/blob/master/LNPopupController/LNPopupController/Private/LNPopupBar.m#L708

with this code:

    UIUserInterfaceLayoutDirection layoutDirection = [UIView userInterfaceLayoutDirectionForSemanticContentAttribute:self.semanticContentAttribute];
    if(layoutDirection == UIUserInterfaceLayoutDirectionLeftToRight)
    {
        titleInsets->right += width;
    }

My snippet lacks proper left (between buttons and labels) inset.

It's more complex than that. I have already fixed it.

Thanks very much, it's fixed now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joaovbalmeida picture joaovbalmeida  路  9Comments

user3587412 picture user3587412  路  4Comments

itjunkii83 picture itjunkii83  路  3Comments

johnswifttt picture johnswifttt  路  6Comments

RajChanchal picture RajChanchal  路  3Comments