Skip to main content
Dec 6, 2023 11:54 PM UTC

Set line lenght to fill container

As far as I know you can only set a fixed lenght for lines, so you can’t have a line that adjusts inside an autolayout.

I’ve avoided using lines, instead I use an autolayout layer and set the height to something like 1 or 2 px so it appears as a line, however I’m working on a protoype that uses dashed lines and I can’t seem to make it work. Adding a fill setting to lines would solve issues like this.

Or if someone has a better way of working around this issue I’d love to know.

4 replies

Jan 4, 2024 7:58 AM UTC

If I get your issue right, you can actually add “fill container” to a line in auto layout.

Maty
Active Member
Jan 4, 2024 8:47 AM UTC

It works for me, i use it all the time.

Feb 9, 2024 2:51 AM UTC

Check if you have Absolute positioning accidentally enabled. I had that issue.

Sean_Cassells
Aug 27, 2024 4:28 PM UTC

How do you add fill container to the file or where is this option?