NSMutableAttributedString

In this tutorial, you will learn how to underline text on UILabel in Swift programmatically. To make the text on UILabel underlined we will need to use the NSMutableAttributedString together with NSUnderlineStyleAttributeName. The Swift code snippet below demonstrates how to create a new UILabel programmatically and then use the NSMutableAttributedString to underline the text on the label. Create a…

Read More Underline Text on UILabel in Swift