Skip to main content
New Member
Feb 21, 2025 7:32 PM UTC
Solved

Want an "underlay" underline to expand with the text

Hello everyone! I am struggling with auto-formatting the text style shown below. What I want is to have the underline expand with the text.

 

The intended visual of the underlay underline

However, when I apply auto-layout and try to hack things a bit, the underline is either right below the text or the text is being covered by the underline (shown below).

 

Would any of you have an idea of how to get the desired result?

This topic has been closed for replies.
Shiv
ShivSolution
New Participant
Feb 21, 2025 8:11 PM UTC

In your auto layout:

  1. Make the underline “ignore layout”
  2. Then set it’s constraints like so:

 

2 replies

Shiv
ShivSolution
New Participant
Feb 21, 2025 8:11 PM UTC

In your auto layout:

  1. Make the underline “ignore layout”
  2. Then set it’s constraints like so:

 

rayrayAuthor
New Member
Feb 24, 2025 3:21 PM UTC

Genius! Thanks so much, Shiv!