\n in UILabel not working
<p>My server return some text contain <code>\n</code>. I expect <code>\n</code> to print a new line but it does not work. Swift just printed the text and <code>\n</code> too. But if I declare string on my local place, e.g.</p>

<pre><code>let test = "This is a \nbook"
</code></pre>

<p>It works! Swift and <code>UILabel</code> prints a new line, e.g.</p>

<pre><code>This is a

book
</code></pre>

<p>Then my code i set</p>

<pre><code>myLabel.numberOfLines = 0
</code></pre>

<p>It doesn't work as expected, but the local variable works.</p>

<p>I don't understand why though. </p>

<p><img src="https://i.stack.imgur.com/PbI9a.png" alt=""></p>