title: How can I bring a view in front of another view, in Swift?
body: <p>Below are how my views are organized in IB, top->bottom when the app is started. </p>
  
  <p>The user can do something to make "Category Table View Header" temporarily expand over "Name View" - however once doing so, the .TouchDown action assigned to "Category Table View Header" no longer works wherever it overlaps with "Name View" (i.e., the user can tap the header anywhere it doesn't overlap with name view and it still works).</p>
  
  <p><a href="https://i.stack.imgur.com/59pNx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/59pNx.png" alt="enter image description here"></a></p>
  
  <p>I know that may be confusing, so I drew out some boxes. On the left is the original, right is after user action - problem is on the right the action on the red box only works if the user taps the bottom half, not the top half.</p>
  
  <p><a href="https://i.stack.imgur.com/kGvKH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kGvKH.png" alt="enter image description here"></a></p>
  
  <p>My guess is its because the header is lower in the view hierarchy than the name view, but it would be hard for me to change that without messing around with a bunch of constraints. </p>
  
  <p>I also tried setting nameView.hidden = true, but that doesn't work. </p>