Swift ios only hide UIView or also hide elements inside UIView
<p>In one viewcontroller I have a few <code>UIViews</code> that constain some text labels and buttons. Depending on what data I receive from my API I either hide some of the <code>UIViews</code> or populate them with data.</p>

<p>My question now is, can I just hide the <code>UIView</code> or must I also hide all of the elements that are nested inside the <code>UIView</code> ?</p>

<p>Eg:</p>

<pre><code>myView.hidden = true
myView.userinteractionsEnabled = false
</code></pre>

<p>vs </p>

<pre><code>myView.hidden = true
myView.userinteractionsEnabled = false

// And some stuff inside/nested myView
myButton.hidden = true
myButton.userinteractionsEnabled = false
myLabel.hidden = true
</code></pre>