Xcode constraints not changing equally

36 Views Asked by At

I'm trying to format a home page of my app and want the distance in the middle of two buttons to stay the same while keeping them centred on the screen using alignment in Xcode. I've been playing around with the constraints forever and can't seem to get it to work. Currently, when on a smaller screen, it seems to favourite the right side editing before the left.

Current alignment settings:

Current alignment settings

What it looks like on small screen:

What it looks like on small screen

I’ve been playing around with the alignment setting forever.

1

There are 1 best solutions below

0
Void Asif On

Refer this video

Use stackview and it will make your life easy, i have center aligned the stackview. You can give constrains as per your need.

enter image description here