title: Floating autolayout iOS/OSX
body: <p>I have a need for floating autolayout. I find that its quite hard problem to solve but i think it can be done by using some of the tips described here: <a href="http://www.objc.io/issue-3/advanced-auto-layout-toolbox.html" rel="nofollow noreferrer">http://www.objc.io/issue-3/advanced-auto-layout-toolbox.html</a> </p>
  
  <p>Maybe someone have already tried solving such problem or would like to try it.</p>
  
  <p>So here is the challenge:
  <img src="https://i.stack.imgur.com/9US8T.png" alt="enter image description here"></p>
  
  <p>nicely floated views which drops to new line if content width exceeded, like in next picture view1 width is bigger so view2 drops to new line. (same would happen if view2 width would become bigger)</p>
  
  <p><img src="https://i.stack.imgur.com/TFlJ0.png" alt="enter image description here"></p>
  
  <p>All views come in sequence, views can have defined min width and max width should be the container width. views can stretch in height but then they always take full content width.</p>