Skip to main content
Mar 19, 2021 9:35 AM UTC
Solved

Autolayout Text with underline

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!

This topic has been closed for replies.
Gleb
GlebSolution
Power Member
Mar 19, 2021 10:05 AM UTC

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

4 replies

Gleb
GlebSolution
Power Member
Mar 19, 2021 10:05 AM UTC

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

Mar 19, 2021 10:18 AM UTC

Hey, very nice, thank you!

Dani14
Apr 9, 2024 9:50 PM UTC

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
Apr 15, 2024 11:59 AM UTC

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