Search code examples
swiftuilabel

How to remove top space from UILabel paragraph?


I'm trying to make a description text like this, but it's not quite pretty. I want the content strings to be at the top.

The current text is rendering as follows:

I need to solve it from storyboard or programmatically.


Solution

  • Just set the UILabel's bottom constraint relation to greater than or equal with constant of 0.