title: UIStackView with Slider, textField and Auto layout
body: <p>I'm trying programmatically implement this layout:</p>
  
  <pre><code>[label|label|slider|label|textField]
  [label|label|slider|label|textField]
  [label|label|slider|label|textField]
  </code></pre>
  
  <p>this is vertical layout with horizontal layouts inside</p>
  
  <p>First problem, what will be the slider size? Unknown, so I add width constraint:</p>
  
  <pre><code>[stackView addConstraint:[NSLayoutConstraint constraintWithItem:slider
                                                         attribute:NSLayoutAttributeWidth
                                                         relatedBy:NSLayoutRelationEqual
                                                            toItem:nil
                                                         attribute:NSLayoutAttributeNotAnAttribute
                                                        multiplier:1.0
                                                          constant:150]];
  </code></pre>
  
  <p>but i'm not sure if it's ok to add constrain in stackView, correct me please if I'm wrong.</p>
  
  <p>Vertical stackView have Leading alignment, Horizontal - Center alignment, here is build result
  <a href="https://i.stack.imgur.com/s2y7y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s2y7y.png" alt="enter image description here"></a></p>
  
  <p>I want to align everything left, but I don't know how, I can do this using IB but the same settings programmatically not working :(</p>
  
  <p>P.S. Also sometimes I'm getting this in log: </p>
  
  <blockquote>
    <p><code>Failed to rebuild layout engine without detectable loss of precision.  This should never happen.  Performance and correctness may suffer.</code></p>
  </blockquote>