title: iOS how to make dynamic width / autolayout of UIView according to UILabel within it
body: <p>I am struggling with maybe a bit of a rookie issue. I have a <code>UIView</code> within which I display some price. I want the <code>UIView</code> to be of a dynamic width according to the price, if its 1 Euro, then it will be e.g. <code>20pt</code>, if its 2300 Euro, then it will be like <code>50pt</code> in width.</p>
  
  <p>I was trying to use the storyboard's constraints but without luck. Is it possible to do it within storyboard or do I have to calculate the width of <code>UILabel</code> and then set the width of <code>UIView</code> programmatically?</p>
  
  <p>Thank you in advance.</p>