title: How to hide elements in a Stack View
body: <p>I have 4 separate views and I want to hide the other 3 of them when one of the buttons is pressed.</p>
  
  <p>I have them in a UIStackView but <code>.isHidden = true</code> does not hide the views for some reason.</p>
  
  <p>It works fine when they're not in a stack view.</p>
  
  <pre><code>@IBAction func qbpressed(_ sender: Any) {
      QBContainer.isHidden = false
      WRContainer.isHidden = true
      RBContainer.isHidden = true
      QBIndicator.isHidden = false
      WRIndicator.isHidden = true
      RBIndicator.isHidden = true
      TEIndicator.isHidden = true
      QBButton.setTitleColor(#colorLiteral(red: 0, green: 0.5008062124, blue: 1, alpha: 1), for: .normal)
      WRButton.setTitleColor(#colorLiteral(red: 0.7540688515, green: 0.7540867925, blue: 0.7540771365, alpha: 1), for: .normal)
      RBButton.setTitleColor(#colorLiteral(red: 0.7540688515, green: 0.7540867925, blue: 0.7540771365, alpha: 1), for: .normal)
      TEButton.setTitleColor(#colorLiteral(red: 0.7540688515, green: 0.7540867925, blue: 0.7540771365, alpha: 1), for: .normal)
  
      if intersitial.isReady{
          intersitial.present(fromRootViewController: self)
      } 
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/VMtn9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VMtn9.png" alt="stack view"></a></p>