Toolbar automatic hight resizing problem
Hello iOS developers,
I have problem with positioning Toolbar and setting it's constrains properly. When I have Toolbar set with single constrain Safe Area.bottom = Toolbar.bottom it is positioned as desired at the bottom of the screen and keeps its automatic height 44 like on the picture:
But of course it complains that Toolbar "Need constrains for: X position, width"
When I add 2 more constrains for Toolbar.leading = Safe Area.leading and Toolbar.trailing = Safe Area.trailing it will resolve Auto Layout issue with X position and width, but will also resize Toolbar's automatic height to 49, which makes now height of Toolbar to appear not symmetrical with its Item no more vertically aligned to the Center, as follows:
Does anyone please, have an idea why this happens? Or how to get a rid of it?
Of course, I can put another constrain to Toolbar height = 44 and it will resolve wrong appearance of the Toolbar, but I don't think it's really correct, because I don't see reason for Toolbar to change it's automatic height when its x position is set?
Is this a bug in Xcode Interface Builder or am I doing something wrong?
Thanks and have great day, everyone.
MacBook Pro 15", macOS 10.15