Skip to main content
Solved

Want an "underlay" underline to expand with the text

  • February 21, 2025
  • 2 replies
  • 37 views

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?

Best answer by Shiv

In your auto layout:

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

 

View original

2 replies

Shiv
  • New Participant
  • 7 replies
  • Answer
  • February 21, 2025

In your auto layout:

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

 


  • Author
  • New Member
  • 1 reply
  • February 24, 2025

Genius! Thanks so much, Shiv!


Reply


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