AutoLayout to dynamically size UILabel Height and Width
<p>I have one UILabel and One UIView contains other subviews side by side in Storyboard. The UIView should butt up against the right edge of the UILabel(trailing constraint of 1), but I also need the UIlabel (the one on the left) to set it's width equal to it's content size unless it hits a max width. Visually:</p>

<p>|Label text| |UIViewWithSubviews|</p>

<p>And I need the following constraints:</p>

<p>1) Label should resize width wise unless it hits a max size and height is also dynamic that means when text reaches the maximum width then the word wrap will break the sentence to another line. and UIview will become vertical to UIlabel.</p>

<p>2) UIView should always be butted up against the right edge of label one in vertical center.</p>

<p>How do I set this up in Storyboard?</p>

<p>Thanks In advance.</p>