title: Xcode; Set a autolayout constraint to a defined variable value
body: <p>Is it possible to define a variable, and set a constraints constant value to that variable?</p>
  
  <p>Thereby making it possible to change many constraints by just changing the variable. I think I saw someone do this directly from interface builder ones? </p>
  
  <p><a href="https://i.stack.imgur.com/eqp9d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eqp9d.png" alt="Constraint of a view, from xcode&#39;s interface builder"></a></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>There is a constraint between each label. I need a method to change all of these constraints, so they get a the same value. Is this possible?</p>
  
  <p>If I use a outlet collection, I will have to iterate through all the constraints, and change the value for each. I'm looking for a method like this:</p>
  
  <pre><code>// SEUDO!!
  lineSeperationWidth = 31    // changes all 4 constraints.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/hKUgG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hKUgG.png" alt="multiple similar constraints"></a></p>