If you use a UIBarButton with customview inside, the position of the labels are wrong and so they overlap (goes behind actually) the buttons.
From the following screenshot, the left button is the "custom" one, while the right one is a UIBarButtonItem with an image.

It does not matter if you provide (via constraints) an fixed size to the custom view inside, the problem still happens.
Add 2 buttons, one with custom view (fixed size will do) and another with an image.
I just tested on iOS11 but I've the feeling is not just in this version.
This was fixed鈥攕upposedly鈥攁 while ago. Could you please create a demo project with the assets you are using and the constraints you are setting on the items?
I modified the example project from this repo. You can download the source code here
https://www.dropbox.com/s/sj8qi1ud1gt7rts/LNPopupController-issue-260.zip?dl=0
Thanks
Thanks, I will soon.
@dral3x ,
First of all, your constraints are not active:
Fix it:
[fixedButton.widthAnchor constraintEqualToConstant:40].active = YES;
[fixedButton.heightAnchor constraintEqualToConstant:40].active = YES;
After that, the labels do not overlap the custom button but there is no margin. We should make a leading constraint but we don't have access to the label properties.
That should be handled by the framework.
Can you post a screenshot with the constraints fixed?
Before:

After activate the constraints:

It remains a small overlap but less important.
Doesn鈥檛 look good.
FYI I did some debugging and it seems that the framework is not able to detect the margin the buttons's container (a UIStackView on iOS11) has with its superview.
I was checking inside this method https://github.com/LeoNatan/LNPopupController/blob/master/LNPopupController/LNPopupController/Private/LNPopupBar.m#L626
@LeoNatan have you any update on this?
Thanks
Sorry, I have been very busy lately. I will look soon. Please don't delete your demo project.
Fixed