Skip to main content
Answer

Autolayout Text with underline

  • March 19, 2021
  • 4 replies
  • 4935 views

Hi,

I would like to apply the autolayout function to the text you see beneath in the image. The text has a underline which should grow with the entered text accordingly.
I know how this works with a button but not with just an underline. I already tried to use a rectangle and apply a shadow so it seems like a line but I had no luck.

Any Idea I could solve this? Thanks!

Best answer by Gleb

Check out my Auto Layout Tips & Hacks file, there are a couple examples of that: https://figma.fun/nlzApu

This topic has been closed for replies.

4 replies

Gleb
  • Power Member
  • Answer
  • March 19, 2021

Check out my Auto Layout Tips & Hacks file, there are a couple examples of that: https://figma.fun/nlzApu


Hey, very nice, thank you!


Dani14
  • April 9, 2024

I tried to follow that tutorial and it didn’t work 😦

I think auto layout has changed in the last 3 years


Gleb
  • Power Member
  • April 15, 2024

It changed, but not in the way that would make this not work.