Skip to main content
Question

Responsive Button + Constraints


Rachelle4

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
  • 1669 replies
  • April 18, 2024

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

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings