Need assistance setting two buttons of equal width, side by side Autolayout

you can done it using equal width to 2nd button like this

enter image description here

and the output is

enter image description here

Here is apple guide


You can have the equal widths constraint between the buttons, but you also have to tell them which is that width you need.

So drag from a button to the superview, add an equal widths constraint. Then in the properties of the constraint you've added, set the multiplier to 0.5, this way your buttons should be on half the screen.


You need to add one more constraint - set horizontal space between buttons to 0

enter image description here