In Xcode, when using auto layout, I wanted to position a button so that if this button doesn't have sibling button then it should align X center, otherwise both can sit side by side.
I have tried with yellow.leadingSpace to superview >= 20, yellow.alignX to superview, but it is not working, yellow button always stays on the left.