title: Overlapping table view scrolls tableView behind it
body: <p>Basically I have a compound view in my storyboard: </p>
  
  <ul>
  <li>a <code>UIView</code> with inputs. Let's call it <strong>View1</strong></li>
  <li>container view displays <code>tableView</code> controller (<strong>View2</strong>)</li>
  </ul>
  
  <p>Works fine.</p>
  
  <p>I have a small issue when another displayed <code>tableview</code> from <code>UIView</code> overlaps the bottom <strong>View2</strong> with its own results. Only cells that stays within the bound of the <strong>View1</strong> can be interacted with and selected. The part of the <code>tableView</code> (autocomplete results) that actually overlaps <strong>View2</strong> (and it looks like it is on top) scrolls the <strong>View2</strong>..</p>
  
  <p><img src="https://i.stack.imgur.com/28b3J.gif" alt="enter image description here"></p>
  
  <p>I already tried referencing View1 and setting <code>View1.layer.zPosition</code> to a higher value. It wouldn't help..</p>
  
  <p>Any suggestions?</p>
  
  <p>If this requires modifying the code Swift syntax is preferred over obj-c</p>