There is a custom UITableViewCell subclass with xib. all elements' constraints are set in IB
Let's take a look at Test label (UILabel element). It has 3 constraints:
The trailing space to superview(cell's content view) is set to 12.
The leading space to superview is set to 12
The top space to superview is set to 5
But when I build and run, the real distance between left simulator's margin and label's leading side is 20! As well for top space - it is more then expected 5px
If I give to label long name - it gets resized and trailing space is positioned correctly -exactly to 12px, as expected.
The same situation is with 2 images below test label. While theirs leading spaces are set to 12, in reality they are distanced on 20 px from content view's left margin.
What can be the reason of issue?