Skip to main content
Rachelle4
Apr 17, 2024 6:18 PM UTC
Question

Responsive Button + Constraints

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.

This topic has been closed for replies.

2 replies

ksn
Figmate
Community Support
Apr 18, 2024 8:39 PM UTC

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.

Pavel_Kiselev
Power Member
Apr 19, 2024 7:27 AM UTC

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