title: UINavigationBar background shadow
body: <p>I'm experiencing a weird problem when I segue to a UIViewController I've made. ViewController B (the one I segue to) has a UIView that slides down using the TransitionCoordinator and constraints, but it shows a grey shadow at the right, like so:</p>
  
  <p><img src="https://i.stack.imgur.com/eyfy5.png" alt="enter image description here"></p>
  
  <p>Once the segue is completely done, it goes back to translucent and displays the blue UIView through the UINavigationBar with a nice blur.</p>
  
  <p>This grey shadow is most likely due to a UIToolBar and UISegmentedControl within that toolbar on the UITableViewController that I segue from. It looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/NgCqz.png" alt="enter image description here"></p>
  
  <p>I'm using this code together with my UIToolBar:</p>
  
  <pre><code>- (UIBarPosition)positionForBar:(id&lt;UIBarPositioning&gt;)bar {
      return UIBarPositionTopAttached;
  }
  </code></pre>
  
  <p>I've tried to use a TransitionCoordinator to fade out the UIToolBar using it's alpha property, but without success. I've also visited other similar questions on SO, but I haven't gotten anywhere.</p>
  
  <p>The strange thing is that it sometimes work as it should, but I can't figure out why it doesn't always happen nor how to completely remove it.</p>
  
  <p><strong>view hierarchy:</strong></p>
  
  <p>Xcode view hierarchy:</p>
  
  <p><img src="https://i.stack.imgur.com/xaUv8.png" alt="enter image description here"></p>
  
  <p>View hierarchy in list:</p>
  
  <p><img src="https://i.stack.imgur.com/hMtVN.png" alt="enter image description here"></p>
  
  <p>Transparent navigationBar:</p>
  
  <p><img src="https://i.stack.imgur.com/GBGP4.png" alt="enter image description here"></p>
  
  <p><strong>More information:</strong></p>
  
  <ul>
  <li>Pulling down the UITableView also displays this, how can I attach the UIToolbar? Looks like the delegate methods isn't working propery.</li>
  <li>When adding a new item to the list, the problem disappears until I restart the root ViewController in the navigation hierarchy</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/klmsp.jpg" alt="enter image description here"></p>
  
  <p>Thanks!</p>