How to adjust a UILabel line spacing programmatically in Swift?
<p>I have a multiline <code>UILabel</code> as shown here:</p>

<p><a href="https://i.stack.imgur.com/ja1Bf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ja1Bf.png" alt="enter image description here"></a></p>

<p>I achieved this using the following code:</p>

<pre><code>label.lineBreakMode = .ByWordWrapping
label.numberOfLines = 2
</code></pre>

<p>I'm trying to "decrease" the line spacing between the 1st line and 2nd line, and I tried to use the following code:</p>

<pre><code>let text = label.attributedText
let mas = NSMutableAttributedString(attributedString:text!)
            mas.replaceCharactersInRange(NSMakeRange(0, mas.string.utf16.count),
                withString: label.text!)
label.attributedText = mas
</code></pre>

<p>However, it does not seem to work.</p>

<p>Thanks</p>