Skip to main content

I created a button with auto layout. However, I want to add constraints so that when I change the frame size (screen size), the button will also adjust its size. My goal is to have the button constrained to the bottom of the screen and Left + Right.


For some reason, despite following the tutorials online, the button is always constrained to the Bottom + Right. Even if I change the settings to Bottom + Left or Bottom + Left & Right.

Hiya! Can you share a copy of the button you’ve built @Rachelle4? It would be helpful to see what you’ve created to make some suggestions 😃


In the meantime, if you haven’t already, this page may be helpful to review.


Most likely your button have auto width (hug contents) which prevents it from stretching across. I’d try to set the button width fixed and see what to happen