title: How to print out all constraints constant in Swift IOS?
body: <p>I can able to print out <strong>main view</strong> constraints constant by using,</p>
  
  <pre><code>for v in view.constraints {
      print(v.constant)
  }
  </code></pre>
  
  <p>but it will not iterate through <strong>subviews</strong> to print their constraints too.
  so for that, i have...</p>
  
  <pre><code>for subview in view.subviews {
      for v in subview.constraints {
          print(v.constant)
      }
  }
  </code></pre>
  
  <p>now the question is <strong>what if the subview is a view itself?</strong>. in this case, how to print out the subview->view constraint constants. may be the view which is in subview may have its own subview and so on...</p>
  
  <p>To fix this issue , 
  i can simply create outlets for all views and then i have to iterate them one by one to get its constraint constants. </p>
  
  <p>but i feel there must be easy way to print out all constraint constants ( <em>all the constraints which are created in storyboard under particular view controller</em> ) full programatically without creating outlets.</p>
  
  <p><strong>In short :</strong></p>
  
  <p>How to Print out all the storybaord constraint constants from view controller 
  please note : the view controller may have several views and subviews and the subviews may have it own subviews. so we need to create an algorithm which will work efficiently in printing out constraint constant in any type of viewcontrollers if used.</p>