Should I call layoutIfNeeded inside viewDidLayoutSubviews()
<p>I am changing some constraints and hiding some elements on a certain VC depending on what device the user is using.</p>

<p>Like this:</p>

<pre><code>   override func viewDidLayoutSubviews() {
        if Iphone6 == true {
            self.view.layoutIfNeeded()
            self.someConst.constant = 70
            self.anotherConst.constant = 67
            self.someButton.hidden = true
            self.someView.hidden = true
            self.view.layoutIfNeeded()
        }   
   }
</code></pre>

<p>Now I wonder if I need to call <code>layoutIfNeeded()</code> twice in <code>viewDidLayoutSubviews</code> ?</p>

<p>I do know that you have to call layoutIfNeeded() twice if you are using <code>animateWithDuration</code> when changing constraints but this it also apply to viewDidLayoutSubviews?</p>

<p>Thanks,</p>