Skip to main content
Solved

Autolayout for header and text spacing?


Hi, I created some blog cards and wanted to use autolayout to make it so the text moves down accordingly when the title breaks into two lines or more. But there doesn’t seem to be a way to make that happen only through the text- I need to manually resize the frame around the title for the autolayout to detect it.
Is there a workaround for this?

Best answer by Vishal_Ramawat

Can you share the screenshot of how you have grouped the items?
Yo can Fix the width of Autolayout frame and select the Autoheight option for text fields and it should work.

Result:

View original
This topic has been closed for comments

3 replies

Vishal_Ramawat

Can you share the screenshot of how you have grouped the items?
Yo can Fix the width of Autolayout frame and select the Autoheight option for text fields and it should work.

Result:


  • Author
  • 1 reply
  • July 3, 2024

OHH SO IT WAS THAT SIMPLE!! Thank you!! I was wrecking my brain over this and didn’t know how to look it up on google haha thank you so much!


Vishal_Ramawat

Glad it was helpful, please do mark the answer as solution 🙂


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