title: Label not displaying full text swift
body: <p>I set up label programmatically and want to change the text of the label once a button is clicked. However, the label just displays part of the text. For example, I want to change the text from &quot;press to start a trip&quot; to &quot;searching for GPS signal..&quot;, only &quot;searching for&quot; displayed even without &quot;...&quot; to indicate that there are more texts.</p>
  <pre><code>let startTravelBtn = UIButton(frame: CGRect(x: 40, y: 50, width: 50, 
  </code></pre>
  <p>height: 30))</p>
  <pre><code>let startTipLabel = UILabel(frame: CGRect(x: 100, y: 50, width: 200, height: 30))
  </code></pre>