How can I underline partial text of UILabel
using only storyboard? I am able to do this in code and I'm able to underline the entire text of a label, but not just one or two words in the string.
Select the text of the label, right click and change the font to 'underline'.
swift 3/4/5 Select range of text which you want to underline. Right click and choose Font then select underline.
select the UILabel
and go to Attribute Inspector section.
Change the text value from plain to Attributed .
Select the particular part of text which you want to Underline .
Note: If u want full text to be Underline select full text.
Now right click and change the font to Underline.
It will Underline the text
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With